Learning Haskell: String manipulation question -


How can I write a function in Haskell, which takes an input string in format a1a2a3 and spreads in a1a2a2a3a3a3 For example, the input string "code" will be expanded to "coodoo"

Probably very disabled: )

  f :: int -> [Four] - & gt; [Four] F _ [] = [] Fn (c: s) = (copy nc) ++ (f (n + 1) s) g: [four] - & gt; [Variable] g = f1 s  

.

  * Main & gt; G "code" "cooddeeeee"  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -