History of Idiom 37 > diff from v11 to v12
Edit summary for version 12 by :
↷
Version 11
2015-09-05, 11:22:39
Version 12
2015-10-29, 14:05:13
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.