Is there a way to use collectors to filter a list ...
# arrow
d
Is there a way to use collectors to filter a list into a set?
a
there's no
filter
collector right now, although it should be possible to write it (right now, maybe using
reduce
?)
d
And how does that go into a set? The docs don't really go into very much about all this...
a
s
Use reduce and initialize it with an empty set
1