Stream: ideas

Topic: list comprehensions


view this post on Zulip Brian Hicks (Sep 16 2022 at 13:38):

I'm curious: will Roc ever grow list comprehensions? I wrote a Python script yesterday and it was like giving an old friend a high five.

(some Rust-Iterator-like concept may be better though.)

view this post on Zulip Qqwy / Marten (Sep 16 2022 at 14:06):

I think that most usage of list comprehensions is covered already by Roc's backpassing capabilities. (and List.joinMap)

view this post on Zulip Qqwy / Marten (Sep 16 2022 at 14:08):

Though I guess that you'd have to be explicit with the pattern-matching (and handling of values not matching the pattern)


Last updated: Jun 16 2026 at 16:19 UTC