Join Slack
Powered by
<@U3669PPNG> commented on <@U0Z3X3AN6>’s file <htt...
# getting-started
u
user
03/29/2017, 12:09 AM
@nkiesel
commented on
@rudolf.hladik
’s file
https://kotlinlang.slack.com/files/U0Z3X3AN6/F4QL37NLU/is_there_a_difference.kt
:
anotherResult
is the more elegant one because it avoids the
mutableList
property of
resultArray
. Also, you could more easily chain another operation after the
filter
(e.g. a
.map{ it.toUpperCase() }
)
is_there_a_difference.kt
Open in Slack
Previous
Next