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

Use fold instead of reduce. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

acehreli
Copy link

Because it takes the range as the first parameter, fold fits better with the rest of Phobos.

@@ -151,13 +152,13 @@ The syntax to convert a tuple back to list is a bit hard to figure out.
@name("Filter by index") @safe unittest{
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This segment does not show up on the page because it does not have a comment. I wanted to add one but I could not figure out what it was doing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant