Lindrian

Untitled

Dec 15th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. 4. The standard prelude contains the function
  2. replicate :: Int -> a -> [a]
  3.  
  4. The following might seem like reasonable definition for it
  5. replicate n x = take n [x,x,..]
  6.  
  7. But it is actually not sufficient. Why not?
Advertisement
Add Comment
Please, Sign In to add comment