Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Anagrams/PicoLisp/anagrams-1.l
Normal file
4
Task/Anagrams/PicoLisp/anagrams-1.l
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(flip
|
||||
(by length sort
|
||||
(by '((L) (sort (copy L))) group
|
||||
(in "unixdict.txt" (make (while (line) (link @)))) ) ) )
|
||||
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)))) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue