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