You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once we have lambda functions, currying can be achieved using those.
It might be convenient to create an extra operator to generate curried functions.
def some_function(a: int, b: int)
let curried = some_function(-, 20)
// essentially the same as
let curried2 = (a: int) -> some_function(a, 20)
curried(10)
Only positional arguments are allowed in this case.
The text was updated successfully, but these errors were encountered:
Once we have lambda functions, currying can be achieved using those.
It might be convenient to create an extra operator to generate curried functions.
Only positional arguments are allowed in this case.
The text was updated successfully, but these errors were encountered: