September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -15,3 +15,16 @@
|
|||
{fibo 1000} -> 7.0330367711422765e+208
|
||||
{map fibo {serie 1 20}}
|
||||
-> 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946
|
||||
|
||||
We could also avoid any name and write an IIFE
|
||||
|
||||
{{lambda {:n}
|
||||
{{lambda {:f :n :a :b} {:f :f :n :a :b}}
|
||||
{lambda {:f :n :a :b}
|
||||
{if {< :n 0}
|
||||
then the number must be positive!
|
||||
else {if {< :n 1}
|
||||
then :a
|
||||
else {:f :f {- :n 1} {+ :a :b} :a}}}} :n 1 0}}
|
||||
8}
|
||||
-> 34
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue