Simple Array Question

BCS ao at pathlink.com
Fri Jun 1 13:21:34 PDT 2007


Reply to BCS,

This reminds me of something I have been finding handy recently:

//take a slice starting at i and of length j:
arr[i..$][0..j]

the alternative is a bit uglier IMHO

arr[i..i+j]




More information about the Digitalmars-d-learn mailing list