Logo

Programming-Idioms

History of Idiom 37 > diff from v7 to v8

Edit summary for version 8 by :

Version 7

2015-09-03, 16:34:18

Version 8

2015-09-05, 11:16:20

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.

Code
(curry range 1)
Comments bubble
range(a,b) = [a..b]
(curry range 1) = λ i ↦ [1..i]
Doc URL
http://hackage.haskell.org/package/base/docs/Prelude.html#v:curry