[swift-evolution] [Discussion] Sortable Attribute
Anton Zhilin
antonyzhilin at gmail.com
Tue Aug 16 17:35:20 CDT 2016
What we need here is sort_by from Ruby. How about adding these overloads?
func sort<U: Comparable>(by: (T) -> U)
func sorted<U: Comparable>(by: (T) -> U) -> [T]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160817/15127316/attachment.html>
More information about the swift-evolution
mailing list