toSequenceWithPoints

fun ClosedFloatingPointRange<Double>.toSequenceWithPoints(numPoints: Int): Sequence<Double>

Convert double range to sequence with the fixed number of points