Swift generics: copying and pasting my code for T? so that it can also work for [T], instead of writing it once with id.
-
-
@mjtsai Optional and Array both fit in an Any…0 replies 0 retweets 1 like -
@jckarter Is there a way to compare to Anys that I know are both Equatable inside?0 replies 0 retweets 1 like -
@mjtsai If they also both conform to another protocol, you can do this (which admittedly belongs in the stdlib): https://gist.github.com/jckarter/2664acba1806b29c4674a8643b71cdd2 …0 replies 0 retweets 1 like
@jckarter I don’t think that really helps me in this case (making something like XCTAssertEqual()), but it’s a good tip. Thanks.
5:56 PM - 24 May 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Michael Tsai
Joe Groff