99 Elm Problems/Problem 11

Write a function to run length encode a list, but instead of using a tuple as in problem 10, define a data type that can represent either a single element or a run of multiple identical element.

Result: Solutions