Array
struct Array<Element> : RandomAccessCollection, MutableCollection
-
Returns an array that filters any events that can be discarded (by checking
isDiscardable()
).Declaration
Swift
public func filterDiscardable() -> [BlocklyEvent]
Return Value
An array filtered of discardable events.
-
Merges all events in the array, from beginning to end, by repeatedly calling
merged(withNextChronologicalEvent:)
on adjacent events.Note
This method assumes that the array is sorted in chronological order.Declaration
Swift
public func merged() -> [BlocklyEvent]
Return Value
An array of merged events.