Hey all. Recently I've created stackoverflow question and then question in kotlin forum about BigDecimal progressions. Here is a link to it:
https://discuss.kotlinlang.org/t/kotlin-bigdecimal-progression/3654
In short: kotlin has a progressions. In fact it has Char, Int and Long progressions. One of the sugar things that language supports to them is '..' operations. So you able to write something like (0..10) or (0L..10L) or ('a'..'z'). My question is can it be done for BigDecimals? So I wrote simple implementation of it (based on IntProgression), you can find it in the above link. But main problem is, when you implementing your own progression you not able to write (bigDecimal1..bigDecimal2) since there is no support '..' for BigDecimals. So my question is, can we really implement ranges and progressions for BigDecimals? And if yes, then my proposal is to do it.
Thank you. Will appreciate to see feedback.