Wherein we hack up our dream map/reduce API, slated to be introduced in PouchDB 2.3.0.
new PouchDB('mydb', {indexes: ['title']});
mozilla@mozilla09485 ~/src/gecko-dev | |
$ ./mach build | |
0:02.27 Clobber not needed. | |
0:02.28 Adding make options from c:\Users\mozilla\src\gecko-dev\.mozconfig | |
MOZ_OBJDIR=/c/Users/mozilla/src/gecko-objdir | |
OBJDIR=/c/Users/mozilla/src/gecko-objdir | |
FOUND_MOZCONFIG=c:/Users/mozilla/src/gecko-dev/.mozconfig | |
export FOUND_MOZCONFIG | |
0:02.77 c:\mozilla-build\mozmake\mozmake.EXE -f client.mk -s configure | |
0:03.52 cd /c/Users/mozilla/src/gecko-objdir |
module(elementcount). | |
export([elementcount/2]). | |
elementcount(Key, List) -> | |
lists:foldl(fun(X, Acc) -> | |
case X =:= Key of |