within

fun within(source: IntervalsSource, positions: Int, reference: IntervalsSource): IntervalsSource

Returns intervals of the source that appear within a set number of positions of intervals from the reference

Parameters

source

the IntervalsSource to filter

positions

the maximum distance that intervals of the source may occur from intervals of the reference

reference

the IntervalsSource to filter by