roc/test/snapshots/repl/str_repeat.md
Luke Boswell 13a8efdd40
add Str.repeat builtin
Wire up Str.repeat to the existing str.zig repeatC implementation,
including interpreter dispatch, builtin compiler mapping, and tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 11:32:43 +11:00

273 B

META

description=Str.repeat should repeat a string a given number of times
type=repl

SOURCE

» Str.repeat("ab", 3)
» Str.repeat("hello", 0)
» Str.repeat("hello", 1)
» Str.repeat("", 5)

OUTPUT

"ababab"

""

"hello"

""

PROBLEMS

NIL