-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add count/2 function to riak_core_util
This is useful for determining how many elements of a list match a certain criteria, without having to waste memory on intermediate lists, and without having to rewrite the fold yourself every time. Similar to Enum.count from Elixir.
- Loading branch information
1 parent
f589d27
commit 84162df
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters