I was wondering if tuple unpacking can be used in a "index from ... to" kind of style, so with inds = (a,b), M[*inds] would lead to M[a:b].
I often have tuples which contain the indices that I use to slice my data into some interesting subset, and would think that something like the proposed above would be convenient. Is there a way to do this?
thanks for input
M[inds]is supported.