I use to use IDL and MatLab in college and now that I have been working for some years I miss the : notation for indexing into arrays. I.E.
arrray[1:5]
which would return an array from elements from 1 to 5. Another example is
stringVar.Split(")".ToCharArray())[1:*]
which would return an array of strings skipping over the first element.
Has anyone seen a way to shoe-horn : notation this into C#?
I have seen it in some interpreted languages and perl or pythin, can't remeber.
I wonder if this could be done with some operator overriding?