Created
March 25, 2019 09:19
-
-
Save sajjadyousefnia/96b4470f9dd621298f21e67998faa8fc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fun hasZeros(ints: List<Int>): Boolean { | |
ints.forEach { | |
if (it == 0) return true // returns from hasZeros | |
} | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment