> On May 11, 2017, at 13:56, Ben Cohen via swift-evolution > <[email protected]> wrote: > > You can use flatMap with a function (Element)->T, and it has the same effect > as map because the function is implicitly converted to (Element)->T? and then > the elements are unwrapped again by the flatMap.
[aside] The implicit lifting of A to Optional<A> is great, but why is it that this case lifts from ((Element)->T) to ((Element)->Optional<T>) rather than Optional<(Element)->T> \? Is that generally more desirable? Guillaume Lessard _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
