Guest User

Untitled

a guest
Sep 20th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. printLine :: [Int] -> String --Type of the function
  2. printLine [] = "" --Base case
  3.  
  4. printLine (x:xs) = "+" ++ foldr (++) "+" f ++ printLine xs
  5. where f = replicate x "-"
  6.  
  7. +-----++------++------++------+
  8.  
  9. +-----+------+------+------+
Add Comment
Please, Sign In to add comment