Stream: ideas

Topic: Iter niceties


view this post on Zulip Dan G Knutson (Oct 12 2026 at 15:30):

When using Roc on some old Advent of Code problems, I ran into a couple List methods that would be nice to have on Iter. Specifically, a version of first that would automatically deal with Skips, and something like keep_oks or a 'filter_map'.

Are QoL Iter methods like that already planned somewhere, and/or would PRs for that kind of thing be welcome?

view this post on Zulip Richard Feldman (Oct 12 2026 at 15:46):

oh I think first should just automatically deal with skips :thinking:

view this post on Zulip Richard Feldman (Oct 12 2026 at 15:47):

keep_oks sounds good :+1:

view this post on Zulip Richard Feldman (Oct 12 2026 at 15:47):

happy to accept a PR for it!


Last updated: Oct 15 2026 at 17:56 UTC