Example: I want to have a class foo with members a and b and access these members as if the class was an array.
foo[0] would return foo.a and foo[1] would return foo.b if that makes sense
I Tried searching online for a couple hours and didn't find anything that came close, I know its possible but I have no idea what its called so I've been unable to find help about it so far.