Ruckus
06/27/2017, 2:26 PMfun count_von_count(n: Int) {
val square = n * n
when (square) {
...
}
}
If you're function contains more than a single logical expression, I find it better to use a block body and avoid some of the more obtuse efforts to get your code on one line. It tends to make it cleaner and more readable.