← All docs
str_repeat() — internals
Compiler internals for str_repeat(): lowering path, type checks, and runtime helpers.
str_repeat() — internals
Where it lives
- Signature:
src/builtins/string/str_repeat.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:808 (lower_str_repeat) - Function symbol:
lower_str_repeat()
Lowering notes
- Lowers
str_repeat(string, times)through the shared runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_str_repeat
Signature summary
function str_repeat(string $string, int $times): string
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/str_repeat.rs(eval_builtin!) - Dispatch hooks:
direct,values