News for hackers. Stuff that matters.
Re:Elixir v1.10 by hopia on Monday January 27, 2020 @04:24PM (#22163949)
In functional programming classes at the uni you probably wouldn't hear this because if they teach Haskell which I assume most do, every function always takes just one argument. That's because functions are curried by default.

I personally haven't really heard this mentioned anywhere outside of the Erlang/Elixir sphere.

Re:Elixir v1.10 by cthalupa on Monday January 27, 2020 @10:08PM (#22166078)
This thread really surprised me - I learned about arity when learning about ternary operators, which are pretty universal - you can find ?: in all sorts of languages. I think I was learning about C when I first got a detailed explanation on the subject.
Re:Elixir v1.10 by pmarreck on Thursday January 30, 2020 @11:07AM (#22192394)
Even if every function is curried by default (and "currying" is yet another concept that may be alien to users of some languages), it is probably still useful to know with what number of arguments a function can evaluate to a value that is not just another function