Last active
November 16, 2017 09:41
-
-
Save saoudrizwan/e4b07c35604f4a7eda0d4daba3ccbd9a to your computer and use it in GitHub Desktop.
Example of using .forEach()
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
let logs = ["Error", "Created", "Crashed"] | |
logs.forEach { print($0) } | |
// prints "Error" | |
// prints "Created" | |
// prints "Crashed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment