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{}
- conformance:genericParameter
A1 - sameType==associatedType
Value- basegenericParameter
A
associatedTypeValue- basegenericParameter
A1
param{}
- 0with:genericParameter
A1 - 1initialValue:genericParameter
B1 - 2update:function
(inout B1, A.Value) -> ()- paramgenericParameter
B1inout - paramassociatedType
Value- basegenericParameter
A
- returnstuple
()
- 3combine:function
(A.Value, A.Value) -> A.Value- paramassociatedType
Value- basegenericParameter
A
- paramassociatedType
Value- basegenericParameter
A
- returnsassociatedType
Value- basegenericParameter
A
result{}
genericParameter
B1