This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: 1's or 0's. A Follow Up.
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
A couple of months back, I surmised out loud what it would be like to be able to access sequences using both indexes AND offsets (like the C family of languages does). I ended up creating a small package called 0nBey0ndZer0 and using it for awhile. I have just replicated it to the Open Repository. Others may find use for it. I chose to use the idiom 'past:' and 'past:put:'. I wasn't ever really able to find a good preposition that is short and means 'offset'. I added upTo: variants for doing the '0 to: stop -1' pattern.
Having had this in my image for a while, I have to admit I've not used it as much as I anticipated I might have. It maybe because often when I want to use it, it's a ByteArray I'm crunching and I need the speed (this implementation is not about speed). Or maybe it's that I didn't get the method names right. I don't know. I have actually just removed the 4 or 5 uses I had of it, and retired it from the prerequisite list. Maybe somebody else will have better use of it. It was an interesting experiment.