Releases: mulias/roc-array2d
Releases · mulias/roc-array2d
v0.3.0
v0.2.0
Changes
- Expose
Array2D.identity
, which was implemented but accidentally kept private - Split out
Index2D
andShape2D
modules - Remove
Index
andShape
types fromArray2D
- Move
isRowStart
,isRowEnd
,isColStart
,isColEnd
fromArray2D
toIndex2D
, change the API to use index and shape as arguments, instead of an index and array. - Update
Index2D
type to userow
andcol
instead ofx
andy
- Update
Shape2D
type to userows
andcols
instead ofdimX
anddimY
- Change
Array2D.flipX
andflipY
toflipRows
andflipCols
- Add new functions to
Index2D
andShape2D
to cover some cases that came up in advent of code
Important Note
With this release some of the functionality in the Array2D
module has been split into two other modules. Roc currently has an open issue related to transative dependencies which means that these additional modules need to be explicitly imported, even if they aren't used in your code.
Example:
packages {
array2d: "https://github.com/mulias/roc-array2d/releases/download/v0.2.0/pmAttjSPjyubNa8XiVH9D3vsDMqHahq_yz81N_tt_UU.tar.br",
}
imports [
array2d.Array2D,
array2d.Shape2D,
array2d.Index2D,
]