Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Anagrams/Transd/anagrams.transd
Normal file
17
Task/Anagrams/Transd/anagrams.transd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#lang transd
|
||||
|
||||
MainModule: {
|
||||
_start: (λ
|
||||
(with fs FileStream() words String()
|
||||
(open-r fs "/mnt/proj/tmp/unixdict.txt")
|
||||
(textin fs words)
|
||||
( -|
|
||||
(split words)
|
||||
(group-by (λ s String() -> String() (sort (cp s))))
|
||||
(regroup-by (λ v Vector<String>() -> Int() (size v)))
|
||||
(max-element)
|
||||
(snd)
|
||||
(textout)
|
||||
)
|
||||
))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue