Created
November 9, 2015 03:50
-
-
Save eldesperado/ca56012b35bf23f0955a to your computer and use it in GitHub Desktop.
Conforming types can be initialized with array literals.
This file contains 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
<# type #> <# extendedType #> : ArrayLiteralConvertible { | |
required init(arrayLiteral elements: <# elementType #>...) { | |
self.<# storage #> = elements | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment