Skip to content

Commit

Permalink
tests: Currying
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 27, 2024
1 parent d63ba4c commit 421aca0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/curry.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fn curry(x: int) {
fn sum(y: int) {
return x + y
}

return sum
}

assert curry(420)(69) == 489
assert curry(420)(69) == curry(69)(420)

0 comments on commit 421aca0

Please sign in to comment.