News for hackers. Stuff that matters.
Re:Why I Prefer Functional Programming by ThinkBeat on Thursday September 19, 2019 @03:31PM (#21019774)
I write Lisp but I have no idea what /x means in the example above for instance.
Re:Why I Prefer Functional Programming by Jare on Thursday September 19, 2019 @04:42PM (#21020543)
That's a syntax knowledge problem, not a readability problem. \x -> introduces a lambda function with a parameter x, like (x) => in javascript etc.
Re:Why I Prefer Functional Programming by dzsekijo on Tuesday September 24, 2019 @07:38PM (#21065915)
The "\" (which is "\" rather than "/", as already pointed out) is just an ascii approximation of λ (just like "u" is used to approximate μ).
Re:Why I Prefer Functional Programming by kian on Thursday September 19, 2019 @04:20PM (#21020310)
It means a 1-argument lambda, where that one argument is named x