suppose i have a tuple containing tuples and arrays
tuple
< tuple
< map<int, int>
, float
>
, tuple
< int
, int
>
, array
< int
5
>
, tuple
< vector<int>
, queue<float>
>
>
state;
the normal way to access an element in a tuple is to use
get <Index> (tuple);
so for the above, to access the array I would use
get <2> (state);
but in order to access the 3rd element of the array I would have to say:
get <3> ( get <2> (state) );
this is quite ugly.
here is an imaginary function that looks prettier:
get <3> (state, 2);
what would the full function signature for such a function look like?