Introduce OpenEndRange and make primitive ranges implement it

#KT-52932
This commit is contained in:
Ilya Gorbunov
2022-06-13 14:48:07 +03:00
committed by Space
parent d54b5f8e85
commit cd9b36b4c3
19 changed files with 257 additions and 16 deletions
@@ -458,6 +458,8 @@ public operator fun ClosedRange<Double>.contains(value: Float): Boolean {
return contains(value.toDouble())
}
// TODO: for OpenEndRange<Double>
/**
* Checks if the specified [value] belongs to this range.
*/