← All docs
array_pop() — internals
Compiler internals for array_pop(): lowering path, type checks, and runtime helpers.
array_pop() — internals
Where it lives
- Signature:
src/builtins/array/array_pop.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1051 (lower_array_pop) - Function symbol:
lower_array_pop()
Lowering notes
- Lowers
array_pop()for indexed arrays by mutating length and boxingT|nullas Mixed.
Runtime helpers
The following runtime helpers are referenced:
__rt_sort_int__rt_sort_str
Signature summary
function array_pop(array $array): mixed
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/array_pop.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.