99 Elm Problems/Problem 10

Run-length encode a list of tuples. Output runs of equal elements as tuples  where   is the number of duplicates of the element.

Result:

Solutions