[<< wikibooks] 99 Elm Problems/Problem 10
Run-length encode a list of tuples. Output runs of equal elements as tuples (n, e) where n is the number of duplicates of the element e.

Result:

Solutions