delete-consecutive-dups

delete-consecutive-dups is a compiled Lisp function in `subr.el'.

(delete-consecutive-dups LIST &optional CIRCULAR)

Destructively remove `equal' consecutive duplicates from LIST.
First and last elements are considered consecutive if CIRCULAR is
non-nil.