RichUtils / pyxis.uzuki.live.richutilskt.utils.progression / BigDecimalProgression / fromClosedRange

fromClosedRange

fun fromClosedRange(rangeStart: BigDecimal, rangeEnd: BigDecimal, step: BigDecimal): BigDecimalProgression

Creates BigDecimalProgression within the specified bounds of a closed range.

The progression starts with the rangeStart value and goes toward the rangeEnd value not excluding it, with the specified step. In order to go backwards the step must be negative.