Instantly share code, notes, and snippets.

Embed
What would you like to do?
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