Skip to content

Instantly share code, notes, and snippets.

@bitops
Created July 14, 2014 01:09
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 bitops/64066a61622195b217c3 to your computer and use it in GitHub Desktop.
Save bitops/64066a61622195b217c3 to your computer and use it in GitHub Desktop.
extension Array {
func each(iterator: (T) -> Void) -> Array {
for item in self {
iterator(item)
}
return self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment