Repeat a string: Difference between revisions
Content added Content deleted
m (Semi-automated edit: Bash -> UNIX Shell) |
m (→Icon and Unicon: header simplification) |
||
Line 298: | Line 298: | ||
EDIT(Text=out, Insert="ha", DO=5)</lang> |
EDIT(Text=out, Insert="ha", DO=5)</lang> |
||
== |
=={{header|Icon}} and {{header|Unicon}}== |
||
==={{header|Icon}}=== |
|||
The procedure <tt>repl</tt> is a supplied function in Icon and Unicon. |
The procedure <tt>repl</tt> is a supplied function in Icon and Unicon. |
||
<lang Icon>procedure main(args) |
<lang Icon>procedure main(args) |
||
Line 309: | Line 308: | ||
return ns |
return ns |
||
end</lang> |
end</lang> |
||
==={{header|Unicon}}=== |
|||
This Icon solution works in Unicon. |
|||
=={{header|Inform 7}}== |
=={{header|Inform 7}}== |