fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 37: Currying
Idiom # 37: Currying
See
programming-idioms.org
:
Code
add (i32, i32) -> i32 := a, b -> a + b add5 i32 -> i32 := a -> add 5 a
What are effects?
Running Example
ex37 is add (i32, i32) -> i32 := a, b -> a + b add5 i32 -> i32 := a -> add 5 a say (add5 25)
What are effects?
last changed: 2024-07-01
next: Idiom # 38: Extract a substring