Last active
January 7, 2016 02:14
-
-
Save RuiAAPeres/63032c9c9c4ce5b0c22c to your computer and use it in GitHub Desktop.
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
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