StreamClass.prototype.dedup(): StreamClass<T, E>
Drops consecutive duplicate values — dedupBy with identity.
await Stream.from([1, 1, 2, 1]).dedup().collect(); // [1, 2, 1]
StreamClass<T, E>
StreamClass.prototype.dedup(): StreamClass<T, E>
Drops consecutive duplicate values — dedupBy with identity.
await Stream.from([1, 1, 2, 1]).dedup().collect(); // [1, 2, 1]
StreamClass<T, E>
import { StreamClass } from "lib/stream/stream.ts";