https://kotlinlang.org logo
#announcements
Title
# announcements
m

mmaillot

09/08/2017, 9:14 AM
Hello, someone try to compare performance between iteration
forEach
and populate
MutableList
and recursive function with
List
? The first seems most efficient but the second one respect immutable principle of functional programming.
k

karelpeeters

09/08/2017, 9:15 AM
Are you talking about transforming a list into another one?
There are
map
,
flatMap
and friends for that.
e

elect

09/08/2017, 9:16 AM
there was a post profiling different kotlin operations,
forEach
and the spread operator were the only two performances critical
m

mmaillot

09/11/2017, 7:48 AM
@karelpeeters @elect Thanks you, i will look this
4 Views