← All docs
array_fill_keys() — internals
Compiler internals for array_fill_keys(): lowering path, type checks, and runtime helpers.
array_fill_keys() — internals
Where it lives
- Signature:
src/builtins/array/array_fill_keys.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:139 (lower_array_fill_keys) - Function symbol:
lower_array_fill_keys()
Lowering notes
- Lowers
array_fill_keys()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_fill_keys(array $keys, mixed $value): array
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/array_fill_keys.rs(eval_builtin!) - Dispatch hooks:
direct,values