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
  • It will be a bit tricky constructing the sub-arrays from the main array using OOTB functions.

    My goal is to construct the following grid from the main grid:
    ---------------------------------
    column1 | column2 | column3 |
    ---------------------------------
    a |b |c |
    ---------------------------------
    d |e |f |
    ---------------------------------
    g |h |i |
    ---------------------------------

    Any good ideas how to acheive that?
Reply
  • It will be a bit tricky constructing the sub-arrays from the main array using OOTB functions.

    My goal is to construct the following grid from the main grid:
    ---------------------------------
    column1 | column2 | column3 |
    ---------------------------------
    a |b |c |
    ---------------------------------
    d |e |f |
    ---------------------------------
    g |h |i |
    ---------------------------------

    Any good ideas how to acheive that?
Children
No Data