← All docs
is_iterable() — internals
Compiler internals for is_iterable(): lowering path, type checks, and runtime helpers.
is_iterable() — internals
Where it lives
- Signature:
src/builtins/types/is_iterable.rs - Lowering:
src/codegen/lower_inst/builtins.rs:1412 (lower_is_iterable) - Function symbol:
lower_is_iterable()
Lowering notes
- Lowers
is_iterable()for concrete values and boxed Mixed payloads.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function is_iterable(mixed $value): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/types/is_iterable.rs(eval_builtin!) - Dispatch hooks:
direct,values