#30
Compress a Sequence
 

Difficulty:Easy
Topics:seqs


Write a function which removes consecutive duplicates from a sequence.
test not run
(= (apply str (__ "Leeeeeerrroyyy")) "Leroy")
test not run
(= (__ [1 1 2 3 3 2 2 3]) '(1 2 3 2 3))
test not run
(= (__ [[1 2] [1 2] [3 4] [1 2]]) '([1 2] [3 4] [1 2]))


Code which fills in the blank: