Created
March 31, 2012 17:39
-
-
Save globulon/2267022 to your computer and use it in GitHub Desktop.
drop1keep1 iteratee
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
| def drop1Keep1[E]: IterV[E, Option[E]] = for { | |
| _: Unit <- drop[E](1) | |
| h: Option[E] <- head[E] | |
| } yield h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment