about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-fib.nix
blob: 9a22d85ac5f1b8ae81d7a5d7dc5e8a1b4a1ce24a (plain) (blame)
1
2
3
4
5
6
7
let
  fib' = i: n: m: if i == 0
    then n
    else fib' (i - 1) m (n + m);

  fib = n: fib' n 1 1;
in fib 10