mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Update haskell.html.markdown
Corrected terminology: currying -> partial application
This commit is contained in:
@@ -171,8 +171,8 @@ foldl1 (\acc x -> acc + x) [1..5] -- 15
|
|||||||
-- 4. More functions
|
-- 4. More functions
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
|
|
||||||
-- currying: if you don't pass in all the arguments to a function,
|
-- partial application: if you don't pass in all the arguments to a function,
|
||||||
-- it gets "curried". That means it returns a function that takes the
|
-- it gets "partially applied". That means it returns a function that takes the
|
||||||
-- rest of the arguments.
|
-- rest of the arguments.
|
||||||
|
|
||||||
add a b = a + b
|
add a b = a + b
|
||||||
|
Reference in New Issue
Block a user