99 Elm Problems/Lists/Problem 1/Find the last element of a list/Solutions

Solution 1: Recursive search for the last element

Solution 2: Reverse and take the head