← All docs
array_reverse() — internals
Compiler internals for array_reverse(): lowering path, type checks, and runtime helpers.
array_reverse() — internals
Where it lives
- Signature:
src/builtins/array/array_reverse.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:193 (lower_array_reverse) - Function symbol:
lower_array_reverse()
Lowering notes
- Lowers
array_reverse()for indexed arrays with 8-byte payload slots.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function array_reverse(array $array): array
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/array_reverse.rs(eval_builtin!) - Dispatch hooks:
direct,values