Provides an ergonomic and fast way to use 2 dimensional arrays in Elm.
Attempts to create a Array2D from an Array of Arrays representing rows.
Returns Nothing when the rows' lengths don't match.
Attempts to create a Array2D from an Array of Arrays representing columns.
Returns Nothing when the columns' lengths don't match.
Attempts to create a Array2D from an Array of elements and the rows and columns amounts.
Orders the elements in row major order.
The array has to be the same length as the product of the provided rows and columns.
Creates an Array2D with the provided rows and columns.
Each element is created using the provided function which gives the index (row and column).
Creates a Array2D with the provided rows and columns and fills it with the provided element.
Gets an element from the Array2D at the provided row and column.
Returns Nothing when the index is out of bounds.
Sets an element in the Array2D at the provided row and column.
Returns the Array2D unchanged if the index is out of bounds.
Updates an element in the Array2D with a function at the provided row and column.
Returns the Array2D unchanged if the index is out of bounds.
Applies a function to every element in the Array2D.
The index (row and column) are provided to the mapping function.
Flattens the Array2D in row major order.
Type representing a 2 dimensional array.