Skip to content

Instantly share code, notes, and snippets.

@globulon
Created March 31, 2012 17:39
Show Gist options
  • Select an option

  • Save globulon/2267022 to your computer and use it in GitHub Desktop.

Select an option

Save globulon/2267022 to your computer and use it in GitHub Desktop.
drop1keep1 iteratee
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