コード風プロンプト例3g 内側のループのみbreakする
Executes nested loops with configurable inner break and prints formatted output.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"outer_count": number, "inner_break_at": number}Emulate the following code internally (without using external tools or interpreter) with environment: $ARGUMENTS
Output only what print() commands would output. Do not show any explanations, code, variables, or other messages.
# Validate required arguments
if outer_count is None:
raise ValueError("Required argument 'outer_count' is missing")
if inner_break_at is None:
raise ValueError("Required argument 'inner_break_at' is missing")
# Nested loop with inner break
for i in range(outer_count):
for j in range(5):
if j == inner_break_at:
break
print(f"bar{i}{j}")
print(f"baz{i}")