Swift implementation of the Scala99 problem set.