benedict
Types
Values
pub fn get_before(bend: Bend(k, v), key: k) -> Result(v, Nil)
pub fn put_after(
bend: Bend(k, v),
key: k,
val: v,
mark prev: k,
) -> Result(Bend(k, v), Nil)
Put the given key-value pair after the specified mark (also a key). Any previously existing value for the same key is deleted in the process.
pub fn put_before(
bend: Bend(k, v),
key: k,
val: v,
mark next: k,
) -> Result(Bend(k, v), Nil)
Put the given key-value pair before the specified mark (also a key). Any previously existing value for the same key is deleted in the process.
pub fn ring_from_list(keyvals: List(#(k, v))) -> Bend(k, v)
pub fn ring_to_list(
bend: Bend(k, v),
head key: k,
) -> Result(List(#(k, v)), Nil)