Skip to content

Instantly share code, notes, and snippets.

@fxm90
Last active August 17, 2017 06:40
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 fxm90/53ac35f7d380d6f09626bd6583232fc6 to your computer and use it in GitHub Desktop.
Save fxm90/53ac35f7d380d6f09626bd6583232fc6 to your computer and use it in GitHub Desktop.
Append one value of same type to array.
func += <T>(left: inout [T], right: T) {
left.append(right)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment