IzumiSy/elm-consistent-hashing/2.0.0

NOTE: the latest version is 4.0.1

ConsistentHashing

A pure Elm Consistent hashing module

A data structure for consistent hashing

Creates a new ConsistentHashing data

new function only takes one initial node at first. This interface is like non-empty list which aims to ensure one node always available at least for distribution.

If you want, you can add some more nodes one by one using add function.

Gets one node by key