Skip to content

Instantly share code, notes, and snippets.

@ketzusaka
Created August 5, 2015 17:05
Show Gist options
  • Select an option

  • Save ketzusaka/11753af34dd9f0bd8440 to your computer and use it in GitHub Desktop.

Select an option

Save ketzusaka/11753af34dd9f0bd8440 to your computer and use it in GitHub Desktop.
protocol Watable { }
extension Array: Watable { }
func test<Type: Watable>(v: Type) {
// Is there a way to tell if Type is an array with any type?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment