When I have tried to implement this function, I found there are much more details then I think. So I opened a (pre-)RFC to describe my ideas first. See Pre-RFC: `{BTreeMap, BTreeSet}::drain` with a range.
1 Like