I recently encountered
which essentially boils down to:
- OP wants behaviour X
- OP provides example code Y to illustrate X
- Question: Can X be achieved? if so:
- Question: How?
I was cautious when approaching this for a two reasons:
- It seemed like a "Give me the codez" question
- A brief scan of example Y made me think "why wouldn't that work?"
So I opened up my IDE, copied in the code (also provided data consistent with the OPs request, an array containing 3 arrays). Lo' and behold, it works without any modifications or debugging.
What should I do with this? As you can see I posted a comment, asking the OP if they'd tried their own code, should I do anything else or wait for a reply?