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

added $key parameter for callable in reduce and reductions functions #1

Merged
merged 1 commit into from
Aug 24, 2015

Conversation

alxsad
Copy link
Owner

@alxsad alxsad commented Aug 24, 2015

iter\reduce(function ($acc, $value, $key) {
    $acc .= sprintf("%s: %s\n", $key, $value);
    return $acc;
}, $response->headers->all(), '');

alxsad added a commit that referenced this pull request Aug 24, 2015
added `$key` parameter for callable in `reduce` and `reductions` functions
@alxsad alxsad merged commit 66111e1 into master Aug 24, 2015
@alxsad alxsad deleted the reduce-key-feature branch August 24, 2015 10:31
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