CIColor.init(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
[[CIColor alloc] initWithRed:0.0 green:1.0 blue:0.0 alpha:1.0]Great documentation uses those examples to shine light on other features that go nicely with (in this case) CIColor or to highlight the right way to do common tasks.
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/CollectionTy...
Here's the examples from the API page for Swift's Collection type: https://developer.apple.com/documentation/swift/collection
Or for Sequence, also full of examples: https://developer.apple.com/documentation/swift/sequence
It's very comparable and highlights the differences and lack of detail in Apple documentation well.