Lazily yield only the unique items from an Iterable or AsyncIterable, preserving order.
Iterable
AsyncIterable
[...unique([1, 2, 2, 3, 1])]; // [1, 2, 3] Copy
[...unique([1, 2, 2, 3, 1])]; // [1, 2, 3]
Optional
Lazily yield only the unique items from an
IterableorAsyncIterable, preserving order.Example