[erlang-questions] How to create a bit array / bit vector

maverik a m4ver1k.a@REDACTED
Wed Feb 27 02:09:17 CET 2019

Hi All,

I'm trying to create a bit array in Erlang with simple new() , set() and
get() operations.

My new() looks like:
new(Max) ->
N = 1 bsl Max-1,

but problem I'm stuck with is, my max can be at most 8 .

How can I create a *bitstring *of Max length ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190226/4292053b/attachment.htm>

More information about the erlang-questions mailing list