withNewInterval

open override fun withNewInterval(i: Interval): Segment<V>

Creates a new segment with the same value on a new interval.

Parameters

i

the new interval