Repeat a string: Difference between revisions

added Inform 7 solution
No edit summary
(added Inform 7 solution)
Line 313:
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Inform 7}}==
<lang inform7>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.</lang>
 
=={{header|J}}==
Anonymous user