Skip to content

transpose

transpose(array2D) → array2D · Array

Transpose a 2D array — rows become columns, columns become rows.

  • array2D (required): array of arrays (all same length)
utlx
transpose([[1, 2, 3], [4, 5, 6]])          // [[1, 4], [2, 5], [3, 6]]
utlx
{
  pivoted: transpose($input.table)
}

Released under AGPL-3.0.