#Bit Array usage
1 messages · Page 1 of 1 (latest)
Is there a specific question u have abt them
I usually refer to this page in the tour
https://tour.gleam.run/data-types/bit-arrays/
The tour contains most of the details. In my experience the best way to learn how to use them is with practise
You can also use Erlang bit array docs
I was looking for how to pattern match on a bit array because I needed to loop over a bit array and be able to get the head and the tail. I was hoping to not have to keep running to the Exercism bit array lesson as it seems to put the Erlang docs explanation into Gleam-speak. But for anybody not doing Exercsim it might be hard to figure out how to put it all together from the Gleam tour and the Erlang docs alone if they don't have an Erlang background.
Although I suppose if you're not doing Exercism or coming from Erlang maybe bit arrays it not something you would really reach for often depending on the types of apps you typically build?
For me personally, the old documentation for bit arrays really helped me wrap my head around pattern matching with them. https://web.archive.org/web/20240215102920/https://gleam.run/book/tour/bit-arrays.html