[swift-evolution] sortBy, minElementBy and maxElementBy methods

Sune Foldager cyano at me.com
Mon Jan 4 11:19:08 CST 2016


> On 31 Dec 2015, at 17:45, David Owens II via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I don’t get the resistance to Dave’s solution? I think it works well and much more applicable. Taking Susan’s original example, it’s not uncommon to want to sort or filter by multiple mechanisms.

Agreed. I’m +1 on Dave’s solution, and in general on primitives that can be composed.

/Sune

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


More information about the swift-evolution mailing list