SwiftfuncKnowledgeGraphKitKnowledgeGraphKit.SparseArrayProtocol

intersection

KnowledgeGraphKit.SparseArrayProtocol.intersection<A, B where A1: KnowledgeGraphKit.SparseArrayProtocol, B1: KnowledgeGraphKit.SparseElement>(with: A1, combine: (A.Value, A1.Value) -> B1) -> KnowledgeGraphKit.SparseArray<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. 1combine:
    function(A.Value, A1.Value) -> B1
    • paramassociatedTypeValue
      • basegenericParameterA
    • paramassociatedTypeValue
      • basegenericParameterA1
    • returnsgenericParameterB1

result{}

  • arggenericParameterB1