You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 16:34:23 UTC
[02/49] fabric commit: updated refs/heads/windsor-merge to b1c0030
Add fabric_dict:is_key/2
BugzId: 21755
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/32225113
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/32225113
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/32225113
Branch: refs/heads/windsor-merge
Commit: 322251130034319500b08a382c02a087be83cbc6
Parents: 503fc0f
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Sep 4 15:58:42 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 1 15:33:40 2014 +0100
----------------------------------------------------------------------
src/fabric_dict.erl | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/32225113/src/fabric_dict.erl
----------------------------------------------------------------------
diff --git a/src/fabric_dict.erl b/src/fabric_dict.erl
index a9d7fea..20700c0 100644
--- a/src/fabric_dict.erl
+++ b/src/fabric_dict.erl
@@ -19,6 +19,8 @@
init(Keys, InitialValue) ->
orddict:from_list([{Key, InitialValue} || Key <- Keys]).
+is_key(Key, Dict) ->
+ orddict:is_key(Key, Dict).
decrement_all(Dict) ->
[{K,V-1} || {K,V} <- Dict].