Hello, someone try to compare performance between ...
# announcements
m
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
Are you talking about transforming a list into another one?
There are
map
,
flatMap
and friends for that.
e
there was a post profiling different kotlin operations,
forEach
and the spread operator were the only two performances critical
m
@karelpeeters @elect Thanks you, i will look this