Fix Accumulators
Correct inefficient list accumulators
This commit is contained in:
parent
82a1449447
commit
0185b3aa7d
2 changed files with 4 additions and 4 deletions
|
@ -596,12 +596,12 @@ get_randomdate() ->
|
|||
[Year, Month, Day, Hour, Minute, Second])).
|
||||
|
||||
|
||||
foldkeysfun(_Bucket, Item, Acc) -> Acc ++ [Item].
|
||||
foldkeysfun(_Bucket, Item, Acc) -> [Item|Acc].
|
||||
|
||||
foldkeysfun_returnbucket(Bucket, {Term, Key}, Acc) ->
|
||||
Acc ++ [{Term, {Bucket, Key}}];
|
||||
[{Term, {Bucket, Key}}|Acc];
|
||||
foldkeysfun_returnbucket(Bucket, Key, Acc) ->
|
||||
Acc ++ [{Bucket, Key}].
|
||||
[{Bucket, Key}|Acc].
|
||||
|
||||
check_indexed_objects(Book, B, KSpecL, V) ->
|
||||
% Check all objects match, return what should be the results of an all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue