Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Anagrams/Quackery/anagrams.quackery
Normal file
22
Task/Anagrams/Quackery/anagrams.quackery
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$ "rosetta/unixdict.txt" sharefile drop nest$
|
||||
[] swap witheach
|
||||
[ dup sort
|
||||
nested swap nested join
|
||||
nested join ]
|
||||
sortwith [ 0 peek swap 0 peek $< ]
|
||||
dup
|
||||
[ dup [] ' [ [ ] ] rot
|
||||
witheach
|
||||
[ tuck 0 peek swap 0 peek = if
|
||||
[ tuck nested join swap ] ]
|
||||
drop
|
||||
dup [] != while
|
||||
nip again ]
|
||||
drop
|
||||
witheach
|
||||
[ over witheach
|
||||
[ 2dup 0 peek swap 0 peek = iff
|
||||
[ 1 peek echo$ sp ]
|
||||
else drop ]
|
||||
drop cr ]
|
||||
drop
|
||||
Loading…
Add table
Add a link
Reference in a new issue