20 people like it.
Like the snippet!
Currying is about fixing arguments of functions from left to right. It's useful to configurate code and embed parameters that usually serve to define the context of a function execution (i.e. a database connection object). Symbolic functions can be used to reorder arguments if needed.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
|
Link: | http://fssnip.net/I |
Posted: | 14 years ago |
Author: | Antonio Cisternino |
Tags: | currying |