← All docs
array_flip() — internals
Compiler internals for array_flip(): lowering path, type checks, and runtime helpers.
array_flip() — internals
Where it lives
- Signature:
src/builtins/array/array_flip.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:179 (lower_array_flip) - Function symbol:
lower_array_flip()
Lowering notes
- Lowers
array_flip()through the hash-building runtime helpers.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function array_flip(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_flip.rs(eval_builtin!) - Dispatch hooks:
direct,values