A toy reimplementation of the Scala collections library