Question on converting array into sub-arrays

Given an array
{"a","b","c","d","e","f", "g","h","i"}

Is there a way to convert it to an equal size sub-arrays as follows (say by specifying 3 in this case):
{{"a","b","c"}, {"d","e","f"}, {"g","h","i"}}

OriginalPostID-227719

OriginalPostID-227719

  Discussion posts and replies are publicly visible

Parents
  • @csteward: Thanks for sharing. I have tried to test the rules shared but they didnot render the expected {a,d,g},{b,e,h},{c,f,i} output. I am thinking of another approach too. But, if we can get your solution to work it will be more dynamic. Hope that it worked when you tried it.
Reply
  • @csteward: Thanks for sharing. I have tried to test the rules shared but they didnot render the expected {a,d,g},{b,e,h},{c,f,i} output. I am thinking of another approach too. But, if we can get your solution to work it will be more dynamic. Hope that it worked when you tried it.
Children
No Data