Last active
September 22, 2018 15:11
-
-
Save nuboat/35e957f182e6b3a72f0cc2f0e0a1ddb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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