vitaly
02/04/2020, 6:28 PMAlowaniak
02/05/2020, 6:56 AMfun String.toClosedRange() = split("-").let { (a, b) -> a.toDouble() .. b.toDouble() }
oh wait, i'm actually not sure if it's a closed range, but I think so?
Also no idea why some of the types are public and some private, but generally you would create ranges with the rangeTo
I think?vitaly
02/05/2020, 7:06 AM@SinceKotlin("1.1")
public operator fun Double.rangeTo(that: Double): ClosedFloatingPointRange<Double> = ClosedDoubleRange(this, that)