sdavids
05/26/2016, 12:31 AMgenerateSequence({ Random().nextInt(11) })
.take(100)
.filter { it % 2 == 0 }
.groupBy { it }
.mapValues { entry -> entry.value.size }
.toList().sortedByDescending { it.second }
Simple count of even digits sorted by count descending. I was hoping to avoid all of the data structure jumping.