hastebrot
09/21/2016, 11:12 AMfun <T> T.println() = apply { println(this) }
val <T> T.println: Unit get() = println(this)
fun main(args: Array<String>) {
listOf(1, 2).println().map { it + 1 }.println() // [1, 2] [2, 3]
}
I kept the println property. I like it somehow to have this at the end of expressions/statements. It's for println debugging anyway.