Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

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
  • Sorry for a few typos, few notes:

    rule!chris_pivotGetIndex_helper(num, separation, count)

    should be:

    rule!chris_pivotGetIndex_helper(num, separation, index)

    rule!chris_pivotGetItems(array,index)

    should be:

    rule!chris_pivotGetItems(array,indexes)

    Ensure in the last one above, array is multiple and indexes is not (single valued string). If the rest of the parameter types match from my initial post, you should be seeing data..
Reply
  • Sorry for a few typos, few notes:

    rule!chris_pivotGetIndex_helper(num, separation, count)

    should be:

    rule!chris_pivotGetIndex_helper(num, separation, index)

    rule!chris_pivotGetItems(array,index)

    should be:

    rule!chris_pivotGetItems(array,indexes)

    Ensure in the last one above, array is multiple and indexes is not (single valued string). If the rest of the parameter types match from my initial post, you should be seeing data..
Children
No Data