SwiftfuncKnowledgeGraphKitKnowledgeGraphKit.SparseArrayProtocol

mapIntersection

KnowledgeGraphKit.SparseArrayProtocol.mapIntersection<A, B where A1: KnowledgeGraphKit.SparseArrayProtocol, A.Value == A1.Value>(with: A1, initialValue: B1, update: (inout B1, A.Value) -> (), combine: (A.Value, A.Value) -> A.Value) -> B1

Structure

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

generic{}

ABA1B1

req{}

param{}

  1. 0with:
    genericParameterA1
  2. 1initialValue:
    genericParameterB1
  3. 2update:
    function(inout B1, A.Value) -> ()
    • paramgenericParameterB1inout
    • paramassociatedTypeValue
      • basegenericParameterA
    • returnstuple()
  4. 3combine:
    function(A.Value, A.Value) -> A.Value
    • paramassociatedTypeValue
      • basegenericParameterA
    • paramassociatedTypeValue
      • basegenericParameterA
    • returnsassociatedTypeValue
      • basegenericParameterA

result{}

genericParameterB1