slidingSplitter + retro
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 6 15:11:48 PDT 2014
On Monday, 6 October 2014 at 21:15:10 UTC, monarch_dodra wrote:
> I don't know how your "radial" works. Does the first "back"
> print "([1, 2, 3], [])" as it should?
I nailed it!
The problem was the definition of opSlice.
I had to add an extra internal state
lower == upper + 1
to represent SlidingSplitter emptyness.
You're welcome to review again now if you feel like :)
https://github.com/nordlow/justd/blob/master/range_ex.d#L18
More information about the Digitalmars-d-learn
mailing list