← All docs
uksort() — internals
Compiler internals for uksort(): lowering path, type checks, and runtime helpers.
uksort() — internals
Where it lives
- Signature:
src/builtins/array/uksort.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1129 (lower_uksort) - Function symbol:
lower_uksort()
Lowering notes
- Lowers
uksort()through the user-sort helper for static comparators.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_is_list
Signature summary
function uksort(array $array, callable $callback): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
- By-reference parameters:
$array.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/uksort.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.