Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functor: Bucket #9

Open
kondziu opened this issue Jul 14, 2021 · 0 comments
Open

Add functor: Bucket #9

kondziu opened this issue Jul 14, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kondziu
Copy link
Contributor

kondziu commented Jul 14, 2021

Add a functor to the DSL that takes any collection and turns it into a collection of buckets.

There's a lot of wiggle room and experimentation here to figure out how this should work exactly.

Some ideas:

database.projects.map_into(Buckets(project::Commits, Count(commit::Authors), UniformWidth(10))
database.projects.map_into(Buckets(project::Commits, Count(commit::Authors), LogWidth)
database.projects.map_into(Buckets(project::Commits, |commit| commit.authors() % 10)

The buckets should be usable within the DSL somehow.

@kondziu kondziu added enhancement New feature or request good first issue Good for newcomers labels Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant