Stream: beginners

Topic: The List module does not expose `forEach`


view this post on Zulip Avram Eisner (Dec 04 2024 at 21:57):

I'm getting that error message when I try to run this code:

numsList |> List.forEach! \nums ->
        Stdout.write! nums

view this post on Zulip Brendan Hansknecht (Dec 04 2024 at 22:21):

https://roc.zulipchat.com/#narrow/stream/231634-beginners/topic/Exclamation.20mark.20for.20List.2EforEach!.20not.20being.20detected.3F.3F

view this post on Zulip Avram Eisner (Dec 05 2024 at 14:24):

Thanks, I guess I'll try using Task.forEach


Last updated: Jul 06 2025 at 12:14 UTC