Question
Redefine putstr :: string $\rightarrow$ IO () using a list comprehension and the library function sequence_ :: [IO a] $\rightarrow$ IO $(1$.
Step 1
We need to redefine the function `putstr` which takes a string and performs an IO action that outputs this string to the console. We are asked to use a list comprehension and the library function `sequence_ :: [IO a] -> IO ()` in our solution. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD