OptionaladdOptionalfilterFilter the ranges already in the set. Only those for which this
function returns true are kept.
OptionalfilterCan be used to limit the range on which the filter is applied. Filtering only a small range, as opposed to the entire set, can make updates cheaper.
OptionalfilterThe end position to apply the filter to.
OptionalsortIndicates whether the library should sort the ranges in add.
Defaults to false.
An array of ranges to add. If given, this should be sorted by
fromposition andstartSideunlesssortis given astrue.