home
/
code
/
hope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add dictionary method: pop.
[hope.git]
/
src
/
hope_dictionary.erl
diff --git
a/src/hope_dictionary.erl
b/src/hope_dictionary.erl
index
5494f39
..
7930c1d
100644
(file)
--- a/
src/hope_dictionary.erl
+++ b/
src/hope_dictionary.erl
@@
-21,6
+21,9
@@
-callback update(t(K, V), K, fun((hope_option:t(V)) -> V)) ->
t(K, V).
-callback update(t(K, V), K, fun((hope_option:t(V)) -> V)) ->
t(K, V).
+-callback pop(t(K, V), K) ->
+ {hope_option:t(V), t(K, V)}.
+
-callback map(t(K, V), fun((K, V) -> V)) ->
t(K, V).
-callback map(t(K, V), fun((K, V) -> V)) ->
t(K, V).
This page took
0.025597 seconds
and
4
git commands to generate.