dedupe

functionsince v0.0-2301 clojure.core/dedupeEdit
(dedupe)
(dedupe coll)

Source docstring:
Returns a lazy sequence removing consecutive duplicates in coll.
Returns a transducer when no collection is provided.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn dedupe
  ([]
   (fn [rf]
     (let [pa (volatile! ::none)]
       (fn
         ([] (rf))
         ([result] (rf result))
         ([result input]
            (let [prior @pa]
              (vreset! pa input)
              (if (= prior input)
                result
                (rf result input))))))))
  ([coll] (sequence (dedupe) coll)))