Add get with default to dictionary interface.
[hope.git] / src / hope_gen_dictionary.erl
index 0d45ecd..dda6eb0 100644 (file)
@@ -15,6 +15,9 @@
 -callback get(t(K, V), K) ->
     hope_option:t(V).
 
+-callback get(t(K, V), K, V) ->
+    V.
+
 -callback set(t(K, V), K, V) ->
     t(K, V).
 
This page took 0.018277 seconds and 4 git commands to generate.