Package:

## Class int[][]

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `Iterator` | `columns()` An iterator of the columns of the array.
    `List` | `flatten()` Flattens a 2D array into a new collection.
    `int[][]` | `transpose()` A transpose method for 2D int arrays.

- - ### Methods Detail

    - #### public Iterator columns()

      An iterator of the columns of the array.

          int[][] nums = [[1, 2], [10, 20]]
          assert nums.transpose() == nums.columns().toList()
          assert nums.columns().collect{ int[] col -> col.sum() } == [11, 22]

      Returns:
        the iterator

    - #### public List flatten()

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

      Example usage:

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

      Returns:
        a Collection of the array elements
      Since:
        5.0.0

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

      A transpose method for 2D int arrays.

      Example usage:

          int[][] nums = [[10, 15, 20], [30, 35, 40]]
          int[][] expected = [[10, 30], [15, 35], [20, 40]]
          assert nums.transpose() == expected

      Returns:
        the transposed 2D int array
      Since:
        3.0.8