Skip to content

Releases: mulias/roc-array2d

v0.3.0

01 Aug 22:00
Compare
Choose a tag to compare
Update to roc nightly, change Nat to U64

v0.2.0

30 Dec 19:39
c1671cf
Compare
Choose a tag to compare

Changes

  • Expose Array2D.identity, which was implemented but accidentally kept private
  • Split out Index2D and Shape2D modules
  • Remove Index and Shape types from Array2D
  • Move isRowStart, isRowEnd, isColStart, isColEnd from Array2D to Index2D, change the API to use index and shape as arguments, instead of an index and array.
  • Update Index2D type to use row and col instead of x and y
  • Update Shape2D type to use rows and cols instead of dimX and dimY
  • Change Array2D.flipX and flipY to flipRows and flipCols
  • Add new functions to Index2D and Shape2D 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,
    ]

v0.1.1

17 Dec 21:33
a318962
Compare
Choose a tag to compare

Fix Array2D.flipY, which had the same implementation as Array2D.flipX.

v0.1.0

29 Nov 22:07
Compare
Choose a tag to compare
Finalize docs, fix walk edge cases

v0.0.1

16 Nov 03:24
Compare
Choose a tag to compare

Initial test release