Skip to content

Instantly share code, notes, and snippets.

@saoudrizwan
Last active November 16, 2017 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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