← All docs
array_values() — internals
Compiler internals for array_values(): lowering path, type checks, and runtime helpers.
array_values() — internals
Where it lives
- Signature:
src/builtins/array/array_values.rs - Lowering:
src/codegen/lower_inst/builtins/arrays/values.rs:22 (lower_array_values) - Function symbol:
lower_array_values()
Lowering notes
- Lowers
array_values()for indexed arrays as an alias or associative arrays as a new values array.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function array_values(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_values.rs(eval_builtin!) - Dispatch hooks:
direct,values