Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,17 +1,17 @@
|
|||
local(f = file('unixdict.txt'), words = array, ordered = array, maxleng = 0)
|
||||
#f->dowithclose => {
|
||||
#f->foreachLine => {
|
||||
#words->insert(#1)
|
||||
}
|
||||
#f->foreachLine => {
|
||||
#words->insert(#1)
|
||||
}
|
||||
}
|
||||
with w in #words
|
||||
do => {
|
||||
local(tosort = #w->asString->values)
|
||||
#tosort->sort
|
||||
if(#w->asString == #tosort->join('')) => {
|
||||
#ordered->insert(#w->asString)
|
||||
#w->asString->size > #maxleng ? #maxleng = #w->asString->size
|
||||
}
|
||||
local(tosort = #w->asString->values)
|
||||
#tosort->sort
|
||||
if(#w->asString == #tosort->join('')) => {
|
||||
#ordered->insert(#w->asString)
|
||||
#w->asString->size > #maxleng ? #maxleng = #w->asString->size
|
||||
}
|
||||
}
|
||||
with w in #ordered
|
||||
where #w->size == #maxleng
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue