Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Anagrams/F-Sharp/anagrams-1.fs
Normal file
2
Task/Anagrams/F-Sharp/anagrams-1.fs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
let xss = Seq.groupBy (Array.ofSeq >> Array.sort) (System.IO.File.ReadAllLines "unixdict.txt")
|
||||
Seq.map snd xss |> Seq.filter (Seq.length >> ( = ) (Seq.map (snd >> Seq.length) xss |> Seq.max))
|
||||
8
Task/Anagrams/F-Sharp/anagrams-2.fs
Normal file
8
Task/Anagrams/F-Sharp/anagrams-2.fs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
val it : string seq seq =
|
||||
seq
|
||||
[seq ["abel"; "able"; "bale"; "bela"; "elba"];
|
||||
seq ["alger"; "glare"; "lager"; "large"; "regal"];
|
||||
seq ["angel"; "angle"; "galen"; "glean"; "lange"];
|
||||
seq ["caret"; "carte"; "cater"; "crate"; "trace"];
|
||||
seq ["elan"; "lane"; "lean"; "lena"; "neal"];
|
||||
seq ["evil"; "levi"; "live"; "veil"; "vile"]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue