mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 03:45:29 +03:00
9 lines
100 B
Plaintext
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)
|