Stuck List of 99 Problems (OCaml) Eliminate consecutive duplicates of list elements. Pack consecutive duplicates of list elements into sublists. Run-length encoding of a list. Modified run-length encoding.