Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
35
Task/Juggler-sequence/Quackery/juggler-sequence.quackery
Normal file
35
Task/Juggler-sequence/Quackery/juggler-sequence.quackery
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[ dip number$
|
||||
over size -
|
||||
space swap of
|
||||
swap join echo$ ] is recho ( n n --> )
|
||||
|
||||
[ 1 & ] is odd ( n --> b )
|
||||
|
||||
[ dup dup * * ] is cubed ( n --> n )
|
||||
|
||||
[ dup 1
|
||||
[ 2dup > while
|
||||
+ 1 >>
|
||||
2dup / again ]
|
||||
drop nip ] is sqrt ( n --> n )
|
||||
|
||||
[ nested
|
||||
[ dup -1 peek 1 != while
|
||||
dup -1 peek
|
||||
dup odd if cubed
|
||||
sqrt join again ] ] is juggler ( n --> [ )
|
||||
|
||||
[ dup 4 recho
|
||||
juggler
|
||||
dup size 1 -
|
||||
3 recho
|
||||
0 swap behead swap
|
||||
witheach
|
||||
[ 2dup < if
|
||||
[ rot drop
|
||||
i^ 1+ unrot
|
||||
swap ]
|
||||
drop ]
|
||||
15 recho 2 recho cr ] is stats ( n --> )
|
||||
|
||||
20 times [ i^ 20 + stats ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue