Package: primitives-and-primitive-arrays

## Class long[][]

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `List` | `flatten()` Flattens a 2D array into a new collection.
    `long[][]` | `transpose()` A transpose method for 2D long arrays.

- - ### Methods Detail

    - #### public List flatten()

      Flattens a 2D array into a new collection. The items are copied row by row.

      Example usage:

          long[][] array = [[0, 1], [2, 3]]
          assert array.flatten() == [0, 1, 2, 3]

      Returns:
        a Collection of the array elements
      Since:
        5.0.0

    - #### public long[][] transpose()

      A transpose method for 2D long arrays.

      Example usage:

          long[][] longs = [[1L, 3L, 5L], [2L, 4L, 6L]]
          long[][] expected = [[1L, 2L], [3L, 4L], [5L, 6L]]
          def result = longs.transpose()
          assert result == expected
          assert longs.class.componentType == result.class.componentType

      Returns:
        the transposed 2D long array
      Since:
        3.0.8