I have a SplayTreeSet in dart and I was wondering wether I could get the position where the object is inserted.
Usually I would know it as length - 1, but since in SplayTreeSet are sorted, I am not sure the item will end up at the end. Is there a way I could get the index upon insertion without looking for it in a second moment?