on Thu Jun 23 2016, James Campbell <[email protected]> wrote:

> Map requires you to return a value you wish to map the optional to, this is
> more like a forEach that only fires when the Optional is .Some

No, you do not need to return a value.

    q.map { print($0) }

works fine.

-- 
Dave

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to