Investment Studio > Expressions > Functions > Matrix > FLIPROWS

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

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

Example

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

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

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