Add Array::sort with no predicate.

This commit is contained in:
Stephen Chung
2021-10-23 11:51:48 +08:00
parent 9f0347df9f
commit 34cf494545
2 changed files with 78 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ Enhancements
* Array methods now avoid cloning as much as possible (although most predicates will involve cloning anyway if passed a closure).
* Array methods that take function pointers (e.g. closures) now optionally take the function name as a string.
* Array adds the `dedup` method.
* Array adds a `sort` method with no parameters which sorts homogeneous arrays of built-in comparable types (e.g. `INT`).
* Inlining is disabled for error-path functions because errors are exceptional and scripts usually fail completely when an error is encountered.
* The `optimize` module is completely eliminated under `no_optimize`, which should yield smaller code size.