Iteraptor.Array
Iteraptor
package update.
Iteraptor.Array
is a naïve implementation of Array
, the idea borrowed from MapSet
. It wraps a list into a structure with an internal map %{index => value}
. where index ∈ [0, length)
.
It implements Access
behaviour. It could be useful if the structure requires deep access and an intermediate term is a list: simply wrap it with Array
and voilà.
Read next THINGS YOU COULD DO WITH MIX - PART 1