← All docs
array_key_last() — internals
Compiler internals for array_key_last(): lowering path, type checks, and runtime helpers.
array_key_last() — internals
Where it lives
- Signature:
src/builtins/array/array_key_last.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1169 (lower_array_key_last) - Function symbol:
lower_array_key_last()
Lowering notes
- Lowers
array_key_last()through the shared edge-key helper with selector1.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_edge_key__rt_mixed_from_value
Signature summary
function array_key_last(array $array): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
Not callable from eval’d code — the magician interpreter has no entry for this builtin.