withNewValue

fun <W> withNewValue(w: W): Segment<W>

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

Parameters

w

the new value