Function algebraicGroupIndex
- algebraicGroupIndex<State, Return>(args): UnregisteredAggregateIndex<State, Return>
-
Parameters
-
args: {
append: ((a, b) => State);
empty: State;
inverse: ((a) => State);
result: ((a) => Return);
}
-
append: ((a, b) => State)
-
- (a, b): State
-
Returns State
-
empty: State
-
inverse: ((a) => State)
-
result: ((a) => Return)
-
- (a): Return
-
Returns Return
If the index forms an algebraic group, return the result of
append
ing all values.Assuming
O(1)
append
andinverse
, this index hasO(1)
memory and time complexity for queries and updates.