[Chapter 5] - Q & A #57
Unanswered
ahngilwoong
asked this question in
CHAPTER 5 스트림 활용 - Q&A
Replies: 2 comments 1 reply
-
Q1. 제 생각엔 둘다 사용가능하지 않을까 싶은데 둘 중 어떤게 더 낫냐(?)라고 물으시면 |
Beta Was this translation helpful? Give feedback.
1 reply
-
이 표현은 혹시 책에 나와있는 건가요?! A. 제 생각에는 둘 다 사용 가능하지만 위 코드에서 평면화가 필요없기 때문에 단순히 새로운 요소로 매핑하는 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[복습 퀴즈]
Map과 FlotMap에 대해 알아보기
map 연산은 각 요소를 1:1로 매핑한다 했고
flatMap 연산은 각 요소를 여러 개의 요소로 매핑한다 했다.
Q1.
스트림을 통해 짝수 찾고 찾은 짝수 2로 나누는 과정인데 map과 flotMap중 뭘 써야하는가 이유는 무엇인가.
Beta Was this translation helpful? Give feedback.
All reactions