First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
8
Task/Anagrams/PicoLisp/anagrams-2.l
Normal file
8
Task/Anagrams/PicoLisp/anagrams-2.l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(let Words NIL
|
||||
(in "unixdict.txt"
|
||||
(while (line)
|
||||
(let (Word (pack @) Key (pack (sort @)))
|
||||
(if (idx 'Words Key T)
|
||||
(push (car @) Word)
|
||||
(set Key (list Word)) ) ) ) )
|
||||
(flip (by length sort (mapcar val (idx 'Words)))) )
|
||||
4
Task/Anagrams/PicoLisp/anagrams.l
Normal file
4
Task/Anagrams/PicoLisp/anagrams.l
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(flip
|
||||
(by length sort
|
||||
(by '((L) (sort (copy L))) group
|
||||
(in "unixdict.txt" (make (while (line) (link @)))) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue