1
1
mirror of https://github.com/thma/WhyHaskellMatters.git synced 2024-09-11 13:46:11 +03:00

work on higher order functions section

This commit is contained in:
Thomas Mahler 2020-03-26 21:08:05 +01:00
parent 7c22739f5f
commit df21fdea2c

View File

@ -247,7 +247,8 @@ add5 = add 5
The trick is as follows: `add 5` returns a function of type `Integer -> Integer` which will add `5` to any Integer argument.
Partial application thus allows us to write functions that return functions as result values.
This technique is frequently used to provide functions with configuration data.
This technique is frequently used to
[provide functions with configuration data](https://github.com/thma/LtuPatternFactory#dependency-injection--parameter-binding-partial-application).
### Functions can be passed as arguments to other functions