Writing Processing in Kotlin

val closest = points.minBy { (mouse.position - it).squaredLength }

ouch… this is neat !