3 ms·
Yeah but, again, we're talking about an initializer. An initializer doesn't need an example other than on the language's documentation page for initializers. T
by zapzupnz 7y ago
Yeah but, again, we're talking about an initializer. An initializer doesn't need an example other than on the language's documentation page for initializers.
The comparison given was totally unfair, as pointed out by another user. Let's look at something more similar to LINQ's Distinct function.
Here's the Collection Types page from the Swift book: https://docs.swift.org/swift-book/LanguageGuide/CollectionTypes.html https://docs.swift.org/swift-book/LanguageGuide/CollectionTy...
Here's the examples from the API page for Swift's Collection type: https://developer.apple.com/documentation/swift/collection https://developer.apple.com/documentation/swift/collection
Or for Sequence, also full of examples: https://developer.apple.com/documentation/swift/sequence https://developer.apple.com/documentation/swift/sequence
- computerex 7y agoHere's a counter-example that someone else pointed out: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color?view=netcore-3.0 https://docs.microsoft.com/en-us/dotnet/api/system.drawing.c... It's very comparable and highlights the differences and lack of detail in Apple documentation well.