I would like to print a char underlining a String n times, with n the length of the String in Haskell.
How should I do this?
My String is: \"Available Chars (x)\
A possibility is to (re)implement replicate, for instance as follows,
replicate
replicate' :: Int -> a -> [a] replicate' n x = if (n <= 0) then [] else (x : replicate (n-1) x)