← All docs
rsort() — internals
Compiler internals for rsort(): lowering path, type checks, and runtime helpers.
rsort() — internals
Where it lives
- Signature:
src/builtins/array/rsort.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1084 (lower_rsort) - Function symbol:
lower_rsort()
Lowering notes
- Lowers
rsort()for indexed integer arrays by mutating the source array in place.
Runtime helpers
The following runtime helpers are referenced:
__rt_arsort__rt_asort__rt_krsort__rt_ksort__rt_natsort__rt_rsort_int__rt_rsort_str
Signature summary
function rsort(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/rsort.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.