← All docs
array_diff_key() — internals
Compiler internals for array_diff_key(): lowering path, type checks, and runtime helpers.
array_diff_key() — internals
Where it lives
- Signature:
src/builtins/array/array_diff_key.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:895 (lower_array_diff_key) - Function symbol:
lower_array_diff_key()
Lowering notes
- Lowers
array_diff_key()for two associative arrays by filtering first-operand keys.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_diff_key__rt_array_intersect_key
Signature summary
function array_diff_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_diff_key.rs(eval_builtin!) - Dispatch hooks:
direct,values - Variadic: collects excess arguments into
$arrays.