StreamClass.prototype.uniq(): StreamClass<T, E>
Keeps the first occurrence of each value — uniqBy with identity.
await Stream.from([1, 2, 1, 2, 3]).uniq().collect(); // [1, 2, 3]
StreamClass<T, E>
StreamClass.prototype.uniq(): StreamClass<T, E>
Keeps the first occurrence of each value — uniqBy with identity.
await Stream.from([1, 2, 1, 2, 3]).uniq().collect(); // [1, 2, 3]
StreamClass<T, E>
import { StreamClass } from "lib/stream/stream.ts";