History of Idiom 37 > diff from v10 to v11
Edit summary for version 11 by :
↷
Version 10
2015-09-05, 11:22:19
Version 11
2015-09-05, 11:22:39
Idiom #37 Currying
Technique of transforming a function that takes multiple arguments and returning a function for which some of the arguments are preset.
Idiom #37 Currying
Technique of transforming a function that takes multiple arguments and returning a function for which some of the arguments are preset.
Comments bubble
(curry range 1) = _λ i ↦ [1..i]
Haskell begins with most functions already curried and allowing partial projection, hence the uncurried range sprang to mind as a notable exception for this illustration.
Comments bubble
(curry range 1) = _λ i ↦ [1..i]
Haskell begins with most functions already curried and allowing partial projection, hence the uncurried range sprang to mind as a notable exception for this illustration.