Intended behavior of std.range.cycle?
    monarch_dodra via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Thu Sep  4 04:58:56 PDT 2014
    
    
  
On Thursday, 4 September 2014 at 11:43:28 UTC, monarch_dodra 
wrote:
> Indexing is done with the unsigned size_t.
I re-read your post, and I don't think I actually answered your 
question...?
I don't know of any case where you'd want to index negativelly. 
That said, I'm sure it could be possible to wrap a cycle into a 
simple "signed cycle" adaptor.
There's one issue with what you want to do though: Who is front, 
and where does your range start?
    
    
More information about the Digitalmars-d-learn
mailing list