You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now lists and maps have their own version of map, filter, reduce, etc.
We could imagine a common iterator interface supported by fibers that both could implement.
This way any user defined object could also implement that interface.
var filtered = [1, 2, 3]
.iter()
.filter(
fun (int i, int element) -> element % 2 == 0
);
The text was updated successfully, but these errors were encountered:
giann
changed the title
Merge function helpers behind a common iterator interface
Merge functional helpers behind a common iterator interface
Oct 17, 2023
Right now lists and maps have their own version of map, filter, reduce, etc.
We could imagine a common iterator interface supported by fibers that both could implement.
This way any user defined object could also implement that interface.
The text was updated successfully, but these errors were encountered: