Created
August 19, 2013 12:17
-
-
Save WillNess/6268513 to your computer and use it in GitHub Desktop.
pointfree diffs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Prelude Control.Arrow Control.Monad Control.Applicative> (tail >>= zip) [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> liftM2 zip tail id [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> liftA2 zip tail id [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> (zip.tail) <*> id $ [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> zip <$> tail <*> id $ [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> join (zip.tail) [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> join (zip <$> tail) [1..5] | |
| [(2,1),(3,2),(4,3),(5,4)] | |
| Prelude Control.Arrow Control.Monad Control.Applicative> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment