Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
8
Task/Ordered-words/Nu/ordered-words.nu
Normal file
8
Task/Ordered-words/Nu/ordered-words.nu
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
def 'str is-ordered' [] {
|
||||
split chars | window 2 | all { $in.0 <= $in.1 }
|
||||
}
|
||||
|
||||
open 'unixdict.txt' | lines
|
||||
| group-by { str length } | sort -n -r
|
||||
| values | each { filter { str is-ordered } }
|
||||
| skip while { is-empty } | first
|
||||
Loading…
Add table
Add a link
Reference in a new issue