Skip to content

Instantly share code, notes, and snippets.

@erica
Created April 23, 2015 21:39
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 erica/bab2b43e8aa5f13b7c7d to your computer and use it in GitHub Desktop.
Save erica/bab2b43e8aa5f13b7c7d to your computer and use it in GitHub Desktop.
func ToArray<S : SequenceType>(sequence: S) -> Array<S.Generator.Element> {
return Array<S.Generator.Element>(sequence)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment