The “&” syntax for generic type parameters is quite useful, and it took me a little rooting around to find out the correct syntax, since the “where” keyword was used before Swift 3:
static func incrementHelper<T: Equatable & IncAndDecrementable> { …
@chrisclark Thanks very much for your suggestion! You actually taught me something as well
I will definitely forward your comment over to the “powers that be”
All the best!
This topic was automatically closed after 166 days. New replies are no longer allowed.