Skip to content

Instantly share code, notes, and snippets.

@nuboat nuboat/Hangman.scala
Last active Sep 22, 2018

What would you like to do?
def f(w: String, l: List[String]) = l.foldLeft(w)((x,y) => x.replace(y,"")).isEmpty
f("bigbears", List("b", "i", "g", "e", "a", "r", "s"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.