Y
Hacker News
new
|
ask
|
show
|
jobs
by
mtraven
3458 days ago
In Clojure it's #(+ 2 %), pretty compact if cryptic. Actually no reason you couldn't make a reader macro in CL to look similar.
2 comments
jdminhbg
3458 days ago
Slightly less cryptic would be (partial + 2).
link
topkekz
3457 days ago
Partial application and currying are two different things.
link
jdminhbg
3457 days ago
That's correct, I'm just responding to the specific case here.
link
PuercoPop
3458 days ago
Someone already has:
https://github.com/eschulte/curry-compose-reader-macros
link