# Functions
Add inserts a new value into the Pot and returns the proximity order of v and a boolean indicating if the item was found Add called on (t, v) returns a new Pot that contains all the elements of t plus the value v, using the applicative add the second return value is the proximity order of the inserted element the third is boolean indicating if the item was found.
DefaultPof returns a proximity order comparison operator function where all.
Label displays the node's key in binary format.
NewAddressFromBytes constructs an Address from a byte slice.
NewAddressFromString creates a byte slice from a string in binary representation.
NewPot constructor.
ProxCmp compares the distances a->target and b->target.
RandomAddress generates a random address.
RandomAddressAt (address, prox) generates a random address at proximity order prox relative to address if prox is negative a random address is generated.
Remove called on (v) deletes v from the Pot and returns the proximity order of v and a boolean value indicating if the value was found Remove called on (t, v) returns a new Pot that contains all the elements of t minus the value v, using the applicative remove the second return value is the proximity order of the inserted element the third is boolean indicating if the item was found.
Swap called on (k, f) looks up the item at k and applies the function f to the value v at k or to nil if the item is not found if f(v) returns nil, the element is removed if f(v) returns v' <> v then v' is inserted into the Pot if (v) == v the Pot is not changed it panics if Pof(f(v), k) show that v' and v are not key-equal.
ToBin converts a byteslice to the string binary representation.
ToBytes turns the Val into bytes.
Union called on (t0, t1, pof) returns the union of t0 and t1 calculates the union using the applicative union the second return value is the number of common elements.
# Interfaces
BytesAddress is an interface for elements addressable by a byte slice.
Val is the element type for Pots.