I'm not sure if this is the right place to ask this, but I was watching a youtube video and it was mentioned that roc is not a curried language? Does that mean you can't create partially applied functions?
You have to use an explicit lambda
\x -> Num.add 3 x
Also, I moved this into a separate thread from the multiline formating thread.
ah, thanks. I've never used this chat before. Bummer about the currying, but thanks for the info!
there's a FAQ entry explaining that design decision: https://github.com/roc-lang/roc/blob/main/FAQ.md#why-arent-roc-functions-curried-by-default
ah, that makes sense. I'm glad that there's a simple way to opt-in if it would be beneficial in specific cases (Edit: I also wrongly assumed that it was required for pipelines)
Last updated: Jul 06 2025 at 12:14 UTC