Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -9,8 +9,8 @@ public program()
|
|||
console.printLine("Unsorted: ", items.asEnumerable());
|
||||
|
||||
console.printLine("Descending length: ", items.clone()
|
||||
.sort:(p,n => p.Length > n.Length).asEnumerable());
|
||||
.sort::(p,n => p.Length > n.Length).asEnumerable());
|
||||
|
||||
console.printLine("Ascending order: ", items.clone()
|
||||
.sort:(p,n => p.toUpper(invariantLocale) < n.toUpper(invariantLocale)).asEnumerable())
|
||||
.sort::(p,n => p.toUpper(invariantLocale) < n.toUpper(invariantLocale)).asEnumerable())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import "/sort" for Cmp, Sort
|
||||
import "./sort" for Cmp, Sort
|
||||
|
||||
var cmp = Fn.new { |s, t|
|
||||
if (s.count < t.count) return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue