Y
Hacker News
new
|
ask
|
show
|
jobs
by
ThinkBeat
2472 days ago
I write Lisp but I have no idea what /x means in the example above for instance.
3 comments
Jare
2472 days ago
That's a syntax knowledge problem, not a readability problem. \x -> introduces a lambda function with a parameter x, like (x) => in javascript etc.
link
dzsekijo
2467 days ago
The "\" (which is "\" rather than "/", as already pointed out) is just an ascii approximation of λ (just like "u" is used to approximate μ).
link
kian
2472 days ago
It means a 1-argument lambda, where that one argument is named x
link