Protocols

The following protocols are available globally.

  • A sorting algorithm, implemented statefully.

    The algorithm is responsible for sorting input into output given the answers to the comparisons returned from callAsFunction().

    The elements that are sorted do not need to conform to Comparable because the evaluation of the comparison is left to the caller.

    See more

    Declaration

    Swift

    public protocol SortingAlgorithm : Identifiable