3 ms·
> 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 i
by fishnchips 3y ago
> 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.