Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Y-combinator/Ela/y-combinator.ela
Normal file
10
Task/Y-combinator/Ela/y-combinator.ela
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fix = \f -> (\x -> & f (x x)) (\x -> & f (x x))
|
||||
|
||||
fac _ 0 = 1
|
||||
fac f n = n * f (n - 1)
|
||||
|
||||
fib _ 0 = 0
|
||||
fib _ 1 = 1
|
||||
fib f n = f (n - 1) + f (n - 2)
|
||||
|
||||
(fix fac 12, fix fib 12)
|
||||
Loading…
Add table
Add a link
Reference in a new issue