[swift-evolution] Adding a new filter method which returns 2 arrays

Arman Shanjani armanshan12 at gmail.com
Fri Jan 15 10:02:54 CST 2016


Hi,

I was wondering if we could add a new filter method to the stdlib, where
instead of returning just one array, it returns a tuple of 2 arrays, one
with items that the closure returned true for and one with items that the
closure returned false for. What do you think?

Thank you,

Arman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160115/dd9273e1/attachment.html>


More information about the swift-evolution mailing list