Missing unique() method on Iterable #8017
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
core-n
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
I went looking for .unique() on iterable and I didn't find it. I have a list that I've mapped and I'd like to get the unique items.
I could create a Set and add all the items in there, but it's nice to be able to chain up these transforms:
collection.mappedBy().unique()
What is the canonical way to get a unique set of items from an iterable? I suppose I could write a reduce() to do it, but would like to see unique() :)
The text was updated successfully, but these errors were encountered: