Stream: roctoberfest

Topic: Array2D package


view this post on Zulip Elias Mulhall (Nov 16 2023 at 04:02):

I finally made a package for the 2d array module I started working on for AoC puzzles
https://github.com/mulias/roc-array2d

Here it is replacing the local implementations I had for days 8 and 14
https://github.com/mulias/roctoberfest/commit/9708ae6eb45cf2ef2323721d2c87cc7f95b31fbc

It's still rough, but it works! The main issue is still related to optional record fields, which I'm using to make walk and walkUntil more configurable. Right now the compiler is convinced that all of the optional record fields must be provided explicitly, which is counter productive and ugly, but better than crashing!

view this post on Zulip Brendan Hansknecht (Nov 16 2023 at 06:23):

Sounds like a good bug to file


Last updated: Jul 06 2025 at 12:14 UTC