couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [02/49] fabric commit: updated refs/heads/windsor-merge to b1c0030
Date Fri, 01 Aug 2014 14:34:23 GMT
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 <paul.joseph.davis@gmail.com>
Authored: Wed Sep 4 15:58:42 2013 -0500
Committer: Robert Newson <rnewson@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].


Mime
View raw message