Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,14 @@
local function y(f)
local g = |r| -> f(|x| -> r(r)(x))
return g(g)
end
local almost_fac = |f| -> (|x| -> x <= 1 ? 1 : x * f(x - 1))
local almost_fib = |f| -> (|x| -> x <= 2 ? 1 : f(x - 1) + f(x - 2))
local fac = y(almost_fac)
local fib = y(almost_fib)
print($"fac(10) = {fac(10)}")
print($"fib(10) = {fib(10)}")