Skip to content

Conversation

@andrew-coleman
Copy link
Member

The second argument can now be an arity-4 function with the following signature
myfunc($accumulator, $value[, $index[, $array]])

resolves #102

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c36a153 on reduce_args into 32b3836 on master.

"D3030": "Unable to cast value to a number: {{value}}",
"D3040": "Third argument of match function must evaluate to a positive number",
"D3050": "First argument of reduce function must be a function with two arguments",
"D3050": "The second argument of reduce function must be a function with at least two arguments",
Copy link
Member

Choose a reason for hiding this comment

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

Was curious about this change then realised that this was already wrong, and it should have said the second argument anyway.

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.

Need a good way to locate elements in an array, or at least that element's index

4 participants