Swift implementation of the infamous Dump! program