Added List.for_each_try! here, if anyone can review: https://github.com/roc-lang/roc/pull/11096
I have never done a contribution to roc yet, hope this is fine, feel free to give feedback.
A message was moved here from #contributing > Track remaining builtins for the Zig compiler by Luke Boswell.
These are new builtins, one is tracked in https://github.com/roc-lang/roc/issues/9596 as deferred and needs design, the other is a new proposal. Like we for all changes to the stdlib I have pulled this into a Zulip thread so we can discuss the details.
for_each_try! : List(item), (item => Try({}, err)) => Try({}, err)has_any_match : List(item), (item -> Bool) -> BoolI personally only care about the signature, the implementation can be changed , any thoughts or resistance against implementing these?
for_each_try! has been approved by Richard.
I also agree that the quality of the initial implementation does not matter that much.
For has_any_match, we already have List.any : List(a), (a -> Bool) -> Bool
Anton said:
For
has_any_match, we already haveList.any : List(a), (a -> Bool) -> Bool
Thanks. Thoughts on renaming it to has_any_match?
match makes me think that you need to provide a value that will be checked for equality so I feel like it does not fit well when you need to provide a function returning a Bool
Removed it. It is only List.for_each_try! now. Can anyone review or add it in another PR?
Reviewed :)
Last updated: Sep 24 2026 at 15:59 UTC