Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -1,2 +1,8 @@
|
|||
: <factorial> dup 1 = if; dup 1- <factorial> * ;
|
||||
: factorial dup 0 = [ 1+ ] [ <factorial> ] if ;
|
||||
:<factorial>
|
||||
dup #1 -eq? 0; drop
|
||||
dup n:dec <factorial> * ;
|
||||
|
||||
:factorial
|
||||
dup n:zero?
|
||||
[ n:inc ]
|
||||
[ <factorial> ] choose ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue