Consolidatable
public protocol Consolidatable
A type implementing Consolidatable allows an array of its values to be combined by
consolidationGroup into a new array using the type’s consolidate(with:) function.
-
The group in which an element should belong to when consolidated
Declaration
Swift
var consolidationGroup: AnyHashable { get } -
The implementation of how two values of the same type are consolidated into a single value of that type
Declaration
Swift
func consolidate(with other: Self) -> SelfParameters
otherAnother value of the same type.
Return Value
A value representing the consolidation of
selfandother
View on GitHub
Consolidatable Protocol Reference