Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -6,11 +6,11 @@ singleton YCombinator
= (f){(x){ x(x) }((g){ f((x){ (g(g))(x) })})}(func);
}
public program()
public Program()
{
var fib := YCombinator.fix::(f => (i => (i <= 1) ? i : (f(i-1) + f(i-2)) ));
var fact := YCombinator.fix::(f => (i => (i == 0) ? 1 : (f(i-1) * i) ));
console.printLine("fib(10)=",fib(10));
console.printLine("fact(10)=",fact(10));
Console.printLine("fib(10)=",fib(10));
Console.printLine("fact(10)=",fact(10));
}