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

Monoidal iterate #155

Merged
merged 1 commit into from Mar 14, 2019

Conversation

Projects
None yet
1 participant
@frankmcsherry
Copy link
Member

frankmcsherry commented Mar 9, 2019

This PR introduces an implementation of the Iterate trait for scopes, which implements an "initially empty" iteration. This provides a convenient way to tap in to monoidal iteration, and also a not-crazy way to start with empty collections (vs the weird filter(|_| false) calls I often make).

@frankmcsherry frankmcsherry merged commit 7fe89fc into master Mar 14, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@frankmcsherry frankmcsherry deleted the iterate_monoid branch Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.