Kotlin lambdas return the result of their last lin...
# getting-started
k
Kotlin lambdas return the result of their last line, even without an explicit return keyword for it. That's how
it.orders.partition { it.isDelivered }
works, too.
it.isDelivered
is returned to the
partition
function