← All docs
uasort() — internals
Compiler internals for uasort(): lowering path, type checks, and runtime helpers.
uasort() — internals
Where it lives
- Signature:
src/builtins/array/uasort.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1134 (lower_uasort) - Function symbol:
lower_uasort()
Lowering notes
- Lowers
uasort()through the user-sort helper for static comparators.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_is_list
Signature summary
function uasort(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/uasort.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.