Logo

Programming-Idioms

History of Idiom 37 > diff from v32 to v33

Edit summary for version 33 by schellsan:
New Haskell implementation by user [schellsan]

Version 32

2018-09-19, 00:07:19

Version 33

2018-10-12, 20:30:15

Idiom #37 Currying

Transform a function that takes multiple arguments into a function for which some of the arguments are preset.

Idiom #37 Currying

Transform a function that takes multiple arguments into a function for which some of the arguments are preset.

Extra Keywords
curry
Extra Keywords
curry
Code
addThem :: Num a => a -> a -> a
addThem = (+)

add5 :: Num a => a -> a
add5 = addThem 5