Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
[ 1 swap
|
||||
dup 0 = iff drop done
|
||||
[ 2dup = iff [ 2drop 1 ] done
|
||||
2dup > iff [ 2drop 0 ] done
|
||||
2dup dip 1+ recurse
|
||||
unrot over - recurse + ] ] is partitions ( n --> n )
|
||||
|
||||
say "Partitions of 0 to 29" cr
|
||||
30 times [ i^ partitions echo sp ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue