title: haskell repeat all chars in a string
body: <p>i just started with Haskell and wanted to do a little function that takes an integer and a String to repeat each char in the String as often as the integer implies.</p>
  
  <p>e.g.: multiply 3 "hello" would output "hhheeelllooo"</p>
  
  <p>My problem now is that i am not sure how to iterate over all the chars.</p>
  
  <pre><code>multiply::Int-&gt;String-&gt;String
  multiply 1 s = s
  multiply i s = multiply (i-1) (take 1 s ++ s)
  </code></pre>
  
  <p>so what i would get is "hhhello". so basically i need to do something like:</p>
  
  <pre><code>mult::Int-&gt;String-&gt;String
  mult 0 s = []
  mult 1 s = s
  mult i s = "iterate over s, take each char and call a modified version of the multiply method that only takes chars above"
  </code></pre>
  
  <p>Thank you for helping me out</p>