Closed victornoel closed 5 years ago
@victornoel I wonder if we should just delete FirstOf
@llorllale ah yes, it could also work :)
@victornoel created poll in telegram chat: https://t.me/elegantobjects/5348
@victornoel the thugs over at https://t.me/elegantobjects voted against removing FirstOf
I also don't think they'll appreciate the change you're requesting.
@llorllale then at least we could rewrite FirstOf
with ItemAt
and Filtered
to avoid code duplication and complexity?
@0crat in
@0crat wait #1160
@scrobot I didn't know this was fixed, you should have told, I would have closed this sooner
I noticed that
FirstOf
was responsible of two different things:Iterable
Iterable
This is its current constructor:
I think it would be much more maintainable if:
FirstOf
was only responsible of taking the first element of anIterable
ItemAt
.There is already
Filtered
to filter anIterable
, so one will be able to write: