← All docs
implode() — internals
Compiler internals for implode(): lowering path, type checks, and runtime helpers.
implode() — internals
Where it lives
- Signature:
src/builtins/string/implode.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:209 (lower_implode) - Function symbol:
lower_implode()
Lowering notes
- Lowers
implode(glue, array)by selecting the string or integer array helper.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function implode(string $separator, array $array = null): string
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/implode.rs(eval_builtin!) - Dispatch hooks:
direct,values