Just found a bit of strange behavior. I am using a...
# announcements
a
Just found a bit of strange behavior. I am using a
TreeMap
and I need to check if given key is beyond the borders of mapped values. Naturally, I write
Copy code
val cache: TreeMap<Double, Double> = TreeMap()
val floor= cache.floorKey(x)