SwiftinitFoundationFoundation.KeyPathComparator

init

Foundation.KeyPathComparator.init<A, B where A1 == B1.Compared, B1: Foundation.SortComparator>(_: KeyPath<A, A1?>, comparator: B1) -> Foundation.KeyPathComparator<A>

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

generic{}

ABA1B1

req{}

  • sameType
    genericParameterA1
    ==
    associatedTypeCompared
    • basegenericParameterB1
  • conformance
    genericParameterB1
    :

param{}

  1. 0_
  2. 1comparator:
    genericParameterB1

result{}

  • arggenericParameterA