[swift-evolution] Add an ifPresent function to Optional
erica at ericasadun.com
Sun Mar 20 13:51:52 CDT 2016
> On Mar 20, 2016, at 12:20 PM, Krzysztof Siejkowski <krzysztof at siejkowski.net> wrote:
> However, I’m not sure about this one:
>> public func f2<U>(@noescape f: (Wrapped) throws -> U!) rethrows -> U!
> I haven’t used implicitly unwrapped optionals at all, I just never found a good case for them. Why do you think this variant might be useful?
Because flatMap. No other reason. I'm not advocating this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution