← All docs
array_intersect_key() — internals
Compiler internals for array_intersect_key(): lowering path, type checks, and runtime helpers.
array_intersect_key() — internals
Where it lives
- Signature:
src/builtins/array/array_intersect_key.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:903 (lower_array_intersect_key) - Function symbol:
lower_array_intersect_key()
Lowering notes
- Lowers
array_intersect_key()for two associative arrays by keeping shared first-operand keys.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_intersect_key
Signature summary
function array_intersect_key(array $array, ...$arrays): array
What the type checker enforces
- Arity: takes exactly 1 argument.
- Variadic: collects excess arguments into
$arrays.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/array_intersect_key.rs(eval_builtin!) - Dispatch hooks:
direct,values - Variadic: collects excess arguments into
$arrays.