Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -0,0 +1,22 @@
|
|||
[ stack ] is f.action ( --> s )
|
||||
[ stack ] is f.end ( --> s )
|
||||
[ stack ] is f.incr ( --> s )
|
||||
[ stack ] is f.index ( --> s )
|
||||
|
||||
[ ' [ f.action f.end
|
||||
f.incr f.index ] ] is f.stacks ( --> [ )
|
||||
|
||||
[ f.index share ] is index ( --> n )
|
||||
|
||||
[ f.incr replace ] is incr ( n --> )
|
||||
|
||||
[ true f.end replace ] is end ( b --> )
|
||||
|
||||
[ 1 false ]'[
|
||||
f.stacks witheach put
|
||||
[ f.action share do
|
||||
f.incr share
|
||||
f.index tally
|
||||
1 incr
|
||||
f.end share until ]
|
||||
f.stacks witheach release ] is from ( n --> )
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
[ $ "" swap
|
||||
number$ reverse
|
||||
[ dup size 3 > while
|
||||
3 split
|
||||
dip join
|
||||
dip [ char , join ]
|
||||
again ]
|
||||
join reverse echo$ ] is echo, ( n --> )
|
||||
|
||||
0
|
||||
42 from
|
||||
[ index prime if
|
||||
[ 1+
|
||||
dup echo
|
||||
say ": "
|
||||
index echo, cr
|
||||
index 1+ incr ]
|
||||
dup 42 = if end ]
|
||||
drop
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
0 42
|
||||
[ dup prime if
|
||||
[ dip 1+
|
||||
over echo
|
||||
say ": "
|
||||
dup echo, cr
|
||||
dup + ]
|
||||
1+
|
||||
over 42 = until ]
|
||||
2drop
|
||||
Loading…
Add table
Add a link
Reference in a new issue