[swift-evolution] [pitch] Character.unicodeScalars

Guillaume Lessard glessard at tffenterprises.com
Thu May 11 17:25:27 CDT 2017

> On May 11, 2017, at 13:56, Ben Cohen via swift-evolution <swift-evolution at swift.org> 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. 


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

More information about the swift-evolution mailing list