Repeat a string: Difference between revisions

added Go
(→‎{{header|C sharp|C#}}: Probably more common than the previous example.)
(added Go)
Line 263:
Output:
hahahahaha
 
=={{header|Go}}==
<lang go>fmt.Println(strings.Repeat("ha", 5)) # ==> "hahahahaha"</lang>
"Characters" are just strings of length one.
 
=={{header|Haskell}}==
Anonymous user