Sandeep Chandra
04/06/2021, 9:22 AMmarstran
04/06/2021, 9:41 AMmarstran
04/06/2021, 9:42 AMlist |> map f1 |> flatMap f2
You would just do list.map(f1).flatMap(f2)
.gildor
04/06/2021, 10:34 AMgildor
04/06/2021, 10:36 AMelizarov
04/06/2021, 11:19 AM.call
style, e.g. collection.filter {...}.map{...}
(no need for a pipe here)
2. Kotlin has .let
scope function that covers the case for non-extension functions, e.g. collection.first().let { println(it) }