Should Elixir functions be curry-able?

Welcome to the forum!

FYI:


TL;DNR:

  • The first argument position is targeted by Kernel.|>/2 - this effectively puts the first argument position in the role that is typically filled by the last argument position in other (curried) FP languages.
  • The last argument position often accepts a keyword list of optional values (defaulting to an empty list) - syntax sugar makes the enclosing (list) square brackets optional - the function pretends to be variadic.
5 Likes