RosettaCodeData/Task/Repeat-a-string/Inform-7/repeat-a-string-1.inf

12 lines
267 B
INI

Home is a room.
To decide which indexed text is (T - indexed text) repeated (N - number) times:
let temp be indexed text;
repeat with M running from 1 to N:
let temp be "[temp][T]";
decide on temp.
When play begins:
say "ha" repeated 5 times;
end the story.