Open ishsonya opened 6 years ago
Thanks for your report.
What is your expected behavior?
Return None
or raise more explicit exception?
hi, you know TreeMap or TreeSet in Java1.8 It has other methods like this: TreeMap<Integer, Integer> map = new TreeMap<>(); map.firstKey(); map.lastKey(); map.ceilingKey(); map.floorKey();
Those method is for TreeMap and this repository does not support TreeMap
.
PR is welcome.
TreeSet.ceiling
and TreeSet.floor
is already supported, and if you want to get first or last element of TreeSet, you can use set[0]
and set[-1]
.
Fails when a value for ceilng is greater than any value in tree