Skip to content

Instantly share code, notes, and snippets.

@rcoh
Created July 20, 2012 21:27
Show Gist options
  • Select an option

  • Save rcoh/3153362 to your computer and use it in GitHub Desktop.

Select an option

Save rcoh/3153362 to your computer and use it in GitHub Desktop.
Nonlazy Map
val logs: List[String] = aLotOfStrings
logs.map(_.takeWhile(_ != ' ')).grouped(8).count(_.contains("ERROR"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment