99 Elm Problems/Problem 14/Solutions

Solution 1: Recursive version

Solution 2: Pointfree, using