[swift-users] Sampling collections
Jens Alfke
jens at mooseyard.com
Sun Apr 10 11:33:41 CDT 2016
It sounds like you’re suggesting that a “sample” property (that returns a randomly chosen element) should be added to the standard library? You could suggest that on the swift-evolution list, though IMHO it seems like a pretty obscure feature that not many users would need.
I don’t understand the comparison with capitalizedString; this works after importing Foundation because of the bridging between String and NSString, which is an artifact of the Mac/iOS Swift 2.x’s dependency on the Cocoa frameworks.
—Jens
More information about the swift-users
mailing list