Last active
January 7, 2019 14:42
-
-
Save andrevidela/242114f50c7d883870f313996d4f928a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct Vector<A> { | |
let fst: A | |
let snd: A | |
} | |
extension Vector: CustomStringConvertible where A: CustomStringConvertible { | |
var description: String { | |
return "Vector<\(String(describing: A.self))>(\(fst.description), \(snd.description))" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment