> I'd be in favor. We'd need another name, since the current closure predicate > is already standardized to `by:`.
Haskell uses "on" for sorting with a mapping. There are both sortOn :: Ord b => (a -> b) -> [a] -> [a] and sortBy :: (a -> a -> Ordering) -> [a] -> [a] in Haskell.
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
