Added fib example
This commit is contained in:
parent
b52a4adb2f
commit
9b50f530ec
|
@ -0,0 +1,6 @@
|
||||||
|
<> (`?: ?0 ?1) ((Int ?:))
|
||||||
|
<> (fib ?n) (?n (Int 0) (Int 1) Fib)
|
||||||
|
<> ((Int 0) (Int ?0) (Int ?1) Fib) ?0
|
||||||
|
<> ((Int ?x) (Int ?y) (Int ?z) Fib) (`- ?x 1 (Int ?z) `+ ?z ?y Fib)
|
||||||
|
|
||||||
|
fib (Int 11)
|
Loading…
Reference in New Issue