#Bit Array usage

1 messages · Page 1 of 1 (latest)

charred tiger
#

Is there any information on using bit arrays in Gleam other than the bit array lesson is Exercism or is that currently the only place where there is Gleam-specific information on using/processing bit arrays?

mortal nest
harsh fjord
proud saffron
#

The tour contains most of the details. In my experience the best way to learn how to use them is with practise

tight cove
#

You can also use Erlang bit array docs

charred tiger
#

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?

eager vine