Question
In a similar way to the function length, show how the library function replicate :: Int $\rightarrow a \rightarrow$ [a] that produces a list of identical elements can be defined using a list comprehension. For example:$>$ replicate 3 True
Step 1
Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD