mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
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>
273 B
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