This article examines two implementations of a logic puzzle written in Swift. The first example uses an imperative programming style, which is the style familiar to most iOS developers. Then we see the same small program written in a functional style, which is facilitated by several Swift language features. Get the source code at https://github.com/ijoshsmith/break-a-dollar The logic puzzle A few
