Repeat a string: Difference between revisions
Content deleted Content added
m Unicon/Icon consistency 2 |
m Unicon/Icon consistency 2 |
||
Line 217: | Line 217: | ||
<lang haskell>replicate 5 '*'</lang> |
<lang haskell>replicate 5 '*'</lang> |
||
== |
== Icon and 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 227: | Line 228: | ||
return ns |
return ns |
||
end</lang> |
end</lang> |
||
==={{header|Unicon}}=== |
|||
This Icon solution works in Unicon. |
|||
=={{header|J}}== |
=={{header|J}}== |