Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- instance Applicative [] where
- pure :: a -> [a]
- pure x = [x]
- (<*>) :: [a -> b] -> [a] -> [b]
- gs <*> xs = [ g x | g <- gs, x <- xs ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement