Skip to content

Instantly share code, notes, and snippets.

@RuiAAPeres
Last active January 7, 2016 02:14
Show Gist options
  • Save RuiAAPeres/63032c9c9c4ce5b0c22c to your computer and use it in GitHub Desktop.
Save RuiAAPeres/63032c9c9c4ce5b0c22c to your computer and use it in GitHub Desktop.
protocol Foo {
typealias T: Hashable
var foos: [T] { get }
}
struct Bar<T: Equatable>: Foo {
let foos: [T]
init(foos: [T]) {
self.foos = foos
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment