Skip to content

Instantly share code, notes, and snippets.

@saoudrizwan
Last active November 16, 2017 09:41
Show Gist options
  • Save saoudrizwan/e4b07c35604f4a7eda0d4daba3ccbd9a to your computer and use it in GitHub Desktop.
Save saoudrizwan/e4b07c35604f4a7eda0d4daba3ccbd9a to your computer and use it in GitHub Desktop.
Example of using .forEach()
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