1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 14:13:27 +03:00
juvix/tests/Core/positive/test016.jvc

7 lines
127 B
Plaintext

-- recursion through higher-order functions
def g := \f \x if x = 0 then 0 else f (x - 1);
def f := \x x + g f x;
f 10 -- 55