`IntRange` and similars have methods to easily ext...
# stdlib
e
IntRange
and similars have methods to easily extract collections.
ClosedRange
instead no.. this is a pity
h
How big would your memory have to be, to contain a collection of all values of a
ClosedRange<Double>
? 😉
e
what about generics?
e
ClosedRange<T : Comparable<T>> doesn't have a way to iterate values
specific subtypes like IntRange do
just to give a sense of how large those ranges would be… https://pl.kotl.in/HcqROb-bC (with negative values fixed: https://pl.kotl.in/8NKF0tLVd)
👍 2