Use the partition function to split a collection into two lists based on a predicate. The function returns a pair of lists: the first contains all elements for which the predicate evaluates to true; the second contains all the other elements. kotlinlang.org/api/latest/jvm… #KotlinTips
10
125
638
0
25
Download Image
@kotlin Why is it called "partition" and not "split"?
@kotlin Or even better the old groupBy of RxJava
@kotlin Shout out to everyone named "Lou" or any other three letter names!! 🙂
@kotlin You seem pretty active here. What about the koans? kotlin-koans-edu seems to be a dead project, it was a nice way to learn though.