Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4. The standard prelude contains the function
- replicate :: Int -> a -> [a]
- The following might seem like reasonable definition for it
- replicate n x = take n [x,x,..]
- But it is actually not sufficient. Why not?
Advertisement
Add Comment
Please, Sign In to add comment