Thank you for your suggestion, bearophile.I ended up checking if the range is empty, and if it was, I'd increment it as elements were added.
Honestly, I much dislike this method.It does not feel right. The C++ version is more consistent because of the iterators.
Please, if anyone has a better approach, share it. http://pastebin.com/MRB5L44M Thank you.