eksperimental-forks / elixir-arrays

Well-structured Arrays with fast random-element-access for Elixir, offering a common interface with multiple implementations with varying performance guarantees that can be switched in your configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arrays

hex.pm version Build Status

Well-structured Arrays with fast random-element-access for Elixir, offering a common interface with multiple implementations with varying performance guarantees that can be switched in your configuration.

Implementations

By default, Arrays ships with:

  • Arrays.Implementations.MapArray: An array with amortized O(1) element access, insertion and removal by using integer keys in a hashmap.
  • Arrays.Implementations.ErlangArray: A relatively efficient purely functional implementation wrapping Erlang's :array library.

Protocols and Behaviours

Array instances implement the following:

Installation

Arrays is available in Hex and can be installed by adding arrays to your list of dependencies in mix.exs:

def deps do
  [
    {:arrays, "~> 0.1.0"}
  ]
end

Documentation can be found at https://hexdocs.pm/arrays.

About

Well-structured Arrays with fast random-element-access for Elixir, offering a common interface with multiple implementations with varying performance guarantees that can be switched in your configuration.


Languages

Language:Elixir 100.0%