I just noticed that we don't have the effectful version of List.map_try, can I add it? It seems pretty essential.
we talked about it and I'd like to hold off
I think it's possible that it's a good idea, but also possible that it's not really something that should be done in practice in comparison to, say, a for loop
if there's actually demand for it in practice, should be easy to add!
Richard Feldman said:
if there's actually demand for it in practice
Yeah, I wanted to use it for a script I was writing, I can use walk_try! but it's a lot more cumbersome.
also possible that it's not really something that should be done in practice in comparison to, say, a
forloop
I wanted to execute an effectful function for a list of files, map would be the cleanest way to do it
ok fair enough!
that makes sense, let's add it :+1:
I actually remember doing that exact thing in Clojure many years ago, now that you mention it
I was just playing around with rewriting a CI script at work in Roc and wound up wanting this also, so I’m glad to have it!
PR for map_try! is ready https://github.com/roc-lang/roc/pull/7770
map_try! is available in the nightly
Last updated: Jun 16 2026 at 16:19 UTC