코틀린 유용한 함수

박마로·2022년 12월 5일
0
post-thumbnail

flatten

Returns a single list of all elements from all arrays in the given array.

여러 배열들로 이루어진 배열의 원소들을 한배열에 합쳐준다고 생각하면 된다.


groupingBy, eachCount

Creates a Grouping source from an array to be used later with one of group-and-fold operations using the specified keySelector function to extract a key from each element.

SQL 문 작성시 이용하는 GROUP BY 와 Count(*)를 생각하면 된다.

profile
Software Developer

0개의 댓글