Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 15, 2015 12:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jmaciasluque/ddc8b19f90bf47320879 to your computer and use it in GitHub Desktop.
def processWords(wordList: List[String], parallel: Boolean): List[String] = {
maybeParallel(parallel, wordList.sorted)
.map(_.toLowerCase)
.map(_.toUpperCase)
.filter(!_.startsWith("a"))
.filter(!_.startsWith("A"))
.filter(!_.startsWith("m"))
.filter(!_.startsWith("M"))
.filter(!_.startsWith("z"))
.filter(!_.startsWith("Z"))
.distinct
.toList
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment