Anagrams: Difference between revisions
Content added Content deleted
imported>Arakov |
imported>Arakov |
||
Line 3,227: | Line 3,227: | ||
auto dictionary := new Map<string,object>(); |
auto dictionary := new Map<string,object>(); |
||
File.assign("unixdict.txt").forEachLine:(word) |
File.assign("unixdict.txt").forEachLine::(word) |
||
{ |
{ |
||
var key := word.normalized(); |
var key := word.normalized(); |
||
Line 3,237: | Line 3,237: | ||
}; |
}; |
||
item.append |
item.append(word) |
||
}; |
}; |
||
dictionary.Values |
dictionary.Values |
||
.quickSort:(former,later => former.Item2.Length > later.Item2.Length ) |
.quickSort::(former,later => former.Item2.Length > later.Item2.Length ) |
||
.top |
.top(20) |
||
.forEach:(pair){ console.printLine(pair.Item2) }; |
.forEach::(pair){ console.printLine(pair.Item2) }; |
||
var end := now; |
var end := now; |