Bend/tests/golden_tests/run_file/recursive_match_native.bend
2024-05-15 00:25:46 +02:00

9 lines
100 B
Plaintext

add = λa λb (+ a b)
sum = λn switch n {
0: 1
_: (add (sum n-1) (sum n-1))
}
main = (sum 9)