home
/
code
/
hope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test on newer releases
[hope.git]
/
src
/
hope_gen_dictionary.erl
diff --git
a/src/hope_gen_dictionary.erl
b/src/hope_gen_dictionary.erl
index
0d45ecd
..
c0b7e53
100644
(file)
--- a/
src/hope_gen_dictionary.erl
+++ b/
src/hope_gen_dictionary.erl
@@
-15,6
+15,12
@@
-callback get(t(K, V), K) ->
hope_option:t(V).
-callback get(t(K, V), K) ->
hope_option:t(V).
+-callback get(t(K, V), K, V) ->
+ V.
+
+-callback get(t(K, V), K, V, fun((V) -> boolean())) ->
+ V.
+
-callback set(t(K, V), K, V) ->
t(K, V).
-callback set(t(K, V), K, V) ->
t(K, V).
@@
-33,8
+39,8
@@
-callback fold(t(K, V), fun((K, V, Acc) -> Acc), Acc) ->
Acc.
-callback fold(t(K, V), fun((K, V, Acc) -> Acc), Acc) ->
Acc.
--callback iter(t(K, V), fun((K, V) ->
ok
)) ->
-
ok
.
+-callback iter(t(K, V), fun((K, V) ->
any()
)) ->
+
{}
.
%% TODO: Decide if validation is to be done. If yes - wrap in hope_result:t/1
-callback of_kv_list([{K, V}]) ->
%% TODO: Decide if validation is to be done. If yes - wrap in hope_result:t/1
-callback of_kv_list([{K, V}]) ->
@@
-42,3
+48,6
@@
-callback to_kv_list(t(K, V)) ->
[{K, V}].
-callback to_kv_list(t(K, V)) ->
[{K, V}].
+
+-callback has_key(t(K, _), K) ->
+ boolean().
This page took
0.024163 seconds
and
4
git commands to generate.