karelpeeters
data class Test(val num: Int) { fun other(): Int { println("hit") return num + 5 } }
list.first { it.other() > 5 }.other()
other
list.map { it.other() }.first { it > 5 }
dany
fold
marstran
list.asSequence().map { it.other() }.first { it > 5 }
firstNotNullResult
A modern programming language that makes developers happier.