Extended ProtocolSwift
Sequence
extension Sequence
Topics
Instance Methods
func compare<Comparator>(Comparator.Compared, Comparator.Compared) -> ComparisonResultIflhsis ordered beforerhsin the ordering described by the given sequence ofSortComparatorsfunc filter(Predicate<Self.Element>) throws -> [Self.Element]func formatted() -> Stringfunc formatted<S>(S) -> S.FormatOutputfunc sorted(using:)Returns the elements of the sequence, sorted using the given comparator to compare elements.