Created
April 9, 2017 18:11
-
-
Save nathankrishnan/c85eb87a2240fd575dfe29629eadbb8a 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
public func isEmpty() -> Bool { | |
return array.reduce(true) { prev, next in prev && !next } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment