Last active
June 3, 2016 09:24
-
-
Save a2/7fd90a37e0a5892a132357e70250bd2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
infix operator <+ {} | |
func <+ <C: RangeReplaceableCollectionType>(inout collection: C, element: C.Generator.Element) { | |
collection.append(element) | |
} | |
var array = [String]() | |
array <+ "Foo" | |
array <+ "Bar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment