@twostraws Array doesn’t have to be homogeneous?
-
-
-
@mjtsai Then it would have the type AnyObject when used as a generic.
-
-
I mean, if I pass in an array of strings, I don't expect to get back an array of elephants … or *do* I? No. No, I don't.
#SwiftLang -
@twostraws if we're talking Swiftness this should be called shuffled, too. But you're right. AnyObject is odd. -
-
@twostraws generics would mean it would be a homogeneous array. AnyObject allows heterogeneous array. But odd though. I can’t see a reason. - Show more
-
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.
Paul Hudson
Michael Tsai
Chris Wagner
Oliver Foggin