hope icon indicating copy to clipboard operation
hope copied to clipboard

A quest for a "standard" Erlang library with uniform, composable abstractions.

Results 10 hope issues
Sort by recently updated
recently updated
newest added

Something like `get(t(K, V)) -> V`, which throws something like `{not_found, K}` in the case of lookup failure. Too often I need to assert presence with `{some, V} = get(D,...

Such as: ``` erlang -spec get_lazy(t(A), fun(() -> A)) -> A. ``` But perhaps a better name.

### Look and feel: - All operations are actually requests to an external resource and therefore can fail, so must live in result monad - Intuitively, the interface should resemble...

Implemented with process dictionary and/or ETS.

Goal: swappable implementations

enhancement

Something along the lines of: ``` erlang -spec get_path(t(K, Elt), Path :: [K]) -> {ok, Elt} | {error, {not_found, K}} when Elt :: {leaf, V} | {node, t(K, Elt)} ....

enhancement

Something like: ``` erlang -spec set_mult(t(K, V), [{K, V}]) -> t(K, V). ```

enhancement