<@U3669PPNG> commented on <@U0Z3X3AN6>’s file <htt...
# getting-started
u
@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() }
)