Hacker News new | past | comments | ask | show | jobs | submit login

> currying is a weird thing

Is it? I think it's actually extremely elegant. A function has exactly one input and returns exactly one output.

If you need two inputs, you have a function that takes one input and returns a function that takes one input and produces the output. Functions that look like they have multiple inputs are just syntactic sugar.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: