IzumiSy/elm-consistent-hashing/4.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.

Removes a node

This function returns Nothing if all nodes were removed.

Gets one node by key