Write a definition of function stutter(s), which produces the string that you get by repeating each character in string s twice. For example,
  stutter("abcd") = "aabbccdd"
  stutter("giraffe") = "ggiirraaffffee"
  stutter("y") = "yy"
  stutter("") = ""

Hint.

  1. Have a case for stutter("").

  2. When s is not an empty string, just concatenate the first character of s, then the same thing again, then stutter(tail(s)). Remember that you need to convert a character to a string to be able to use operator ++ with it.

 

  [Language: Cinnameg  Kind: function definition]