trivionomicon/templates/system-flake/pkgs/lib/fibonacci.nix
2025-01-26 15:42:00 -06:00

8 lines
84 B
Nix

let
fib = n:
if n > 1
then fib (n - 1) + fib (n - 2)
else 1;
in
fib