99 Elm Problems/Problem 18/Solutions

Solution 1: Pointfree version, using  and