-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wordle] 애쉬(김동호) 미션 제출합니다. #6
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안녕하세요 애쉬~ 처음 보는 코드들이 많네요. 배워갑니다 :) 고생하셨어요
|
||
private fun isRightSize(): Boolean = value.length == SIZE | ||
|
||
private fun isAlphabet(): Boolean = Regex("^[a-zA-Z]*$").matches(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
찾아보니 char 타입에 isLetter
라는 메소드가 있네요~ 이걸 활용해보면 어떨까요 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLetter는 한글도 letter로 인식하네요..ㅠㅠ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 그렇군요. 저번 시간에 배운 확장함수를 이용해보는 것도 재밌을 것 같아요 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확장함수 적용해봤어용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안녕하세요 애쉬~ 리뷰 반영하신 것 잘봤습니다! 추가적으로 저희가 배운 내용들을 더해서 리뷰 남겨봤으니 확인해주시면 감사하겠습니다 :)
|
||
private fun isRightSize(): Boolean = value.length == SIZE | ||
|
||
private fun isAlphabet(): Boolean = Regex("^[a-zA-Z]*$").matches(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 그렇군요. 저번 시간에 배운 확장함수를 이용해보는 것도 재밌을 것 같아요 👍
안녕하세요 애쉬~ 피드백 반영하신 내용 확인했습니다. 코드에서 더 이상 수정하실 건 없을 것 같고, 함께 고민해볼 포인트들이 몇 가지 있는 것 같아 그 부분만 한번 생각해보시고 답변 달아주시면 감사하겠습니다~ 미션하시느라 고생 많으셨어요 ! 👍 |
No description provided.