Bloomex.BitArray

This module implements a bit array using Erlang’s :array module.

Summary

Functions

Returns true if the bitarray has the ith bit set, otherwise returns false

Returns a new bitarray of size n

Returns an updated bitarray where the ith bit is set

Types

t :: :array.array

Functions

get(a, i)

Specs

get(t, non_neg_integer) :: boolean

Returns true if the bitarray has the ith bit set, otherwise returns false.

new(n)

Specs

new(pos_integer) :: t

Returns a new bitarray of size n.

set(a, i)

Specs

set(t, non_neg_integer) :: t

Returns an updated bitarray where the ith bit is set.