Investment Studio > Expressions > Functions > Matrix > FLIPCOLS

array[m][n] flipcols(array[m][n] argument)

Returns the two-dimensional argument array with inverted column order: the last column in argument becomes the first column in the result, and so on.

Example

=flipcols({{1, 2, 3}, {4, 5, 6}})

returns {{3, 2, 1}, {6, 5, 4}}.

See also fliprows, msort, swapcols, swaprows, transpose.