of course!
fn = v1 => v2 => v1 + v2 fn('foo') // returns: v2 => 'foo' + v2
If you'll have any questions about what I'll tell you, just ask *warms up* first of, function with any fixed arity can be represented as a function that takes one argument and returns a function... Example: (a, b, c) => ... can be translated to a => b => c => ...
Обсуждают сегодня