Yesterday I read too much Roc Zulip. So much so that I've dreamt about our lambdas! As if the current\arg1 -> body syntax was calling me to help in a last stand, this code snippet appeared in front of me :big_smile:
fn1 = \arg1 -> \arg2 -> \arg3 ->
body
This code looks beautiful! I know Roc isn't incentivizing currying, but sometimes it is still useful. I've recently used it for AoC.
I present you the new syntax:
fn1 = |arg1| |arg2| |arg3|
body
2 minutes ago, I thought this syntax would deter most ppl from the pipe syntax. Now that I've written it down, I actually think it looks neat, even betterthan the \arg -> body syntax, so I'm kind of left without a point to present :sweat_smile:
I don't think currying was considered with the new pipe syntax. What's your impression, do you like it?
I didn't think about it originally, but I agree that it looks better!
Last updated: Jun 16 2026 at 16:19 UTC