Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
private def exercise2() {
List("alpha", "bravo", "charlie", "delta", "echo", "foxtrot")
.filterNot(_.length % 2 != 0)
.foreach(println)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment