Tag: kotlin

Kotlin Function Application

I often write some code like this: val result = someData.split(…) .map { … } .filter { … } .reduce { … } …. someFunction(result) As you can see last line of the code is breaking the beautiful flow of chained functions. One can rewrite this as: someFunction(someData.split(…) .map { … } .filter { ……

Read the full article