Skip to content

Document function argument for prod #19146

@cossio

Description

@cossio

sum and mean both can take a function argument to apply to elements before summing or averaging, and this is documented:

?sum
sum(f, itr)

Sum the results of calling function f on each element of itr.

?mean
mean(f::Function, v)

Apply the function f to each element of v and take the mean.

But ?prod doesn't show the method that takes a function argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull requestneeds docsDocumentation for this change is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions