Created
May 30, 2018 12:20
-
-
Save bijancn/4fc90db522c4b12a8f69ba3c5683e390 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 countSpaces(word: List[Char]): Int = | |
word.count(_ == ' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment