← All docs
array_unique() — internals
Compiler internals for array_unique(): lowering path, type checks, and runtime helpers.
array_unique() — internals
Where it lives
- Signature:
src/builtins/array/array_unique.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:207 (lower_array_unique) - Function symbol:
lower_array_unique()
Lowering notes
- Lowers
array_unique()for indexed arrays with 8-byte payload slots.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_filter__rt_array_filter_refcounted
Signature summary
function array_unique(array $array): array
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/array_unique.rs(eval_builtin!) - Dispatch hooks:
direct,values