3 ms·
You definitely can have a 'some' type property[0]. Computed properties work just like functions do. Stored properties just need a value assigned, like so:
by favorited 7y ago
You definitely can have a 'some' type property[0]. Computed properties work just like functions do. Stored properties just need a value assigned, like so:
let strings: some Collection = ["hello", "world"]
[0]https://github.com/apple/swift-evolution/blob/master/proposals/0244-opaque-result-types.md#properties-and-subscripts https://github.com/apple/swift-evolution/blob/master/proposa...