← All docs
asort() — internals
Compiler internals for asort(): lowering path, type checks, and runtime helpers.
asort() — internals
Where it lives
- Signature:
src/builtins/array/asort.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1089 (lower_asort) - Function symbol:
lower_asort()
Lowering notes
- Lowers
asort()for indexed integer arrays through the value-sort runtime wrapper.
Runtime helpers
The following runtime helpers are referenced:
__rt_arsort__rt_asort__rt_krsort__rt_ksort__rt_natcasesort__rt_natsort
Signature summary
function asort(array $array): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
- By-reference parameters:
$array.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/asort.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.