← All docs
array_is_list() — internals
Compiler internals for array_is_list(): lowering path, type checks, and runtime helpers.
array_is_list() — internals
Where it lives
- Signature:
src/builtins/array/array_is_list.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1150 (lower_array_is_list) - Function symbol:
lower_array_is_list()
Lowering notes
- Lowers
array_is_list()to the__rt_array_is_listruntime predicate, returning a bool. - The runtime helper accepts any array kind (indexed, associative hash, or boxed mixed cell) and
- reports
1when the keys are the sequential integers0..n-1in insertion order,0otherwise.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_edge_key__rt_array_is_list__rt_mixed_from_value
Signature summary
function array_is_list(mixed $array): bool
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.