My own resolution of the 99 scala problems from http://aperiodic.net/phil/scala/s-99/