Add functions from base/reducedim.jl to doc/base/src/arrays.md #29773
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This follows up on #29604 (comment): several of the doc-string'ed, exported functions (with
AbstractArrayinputs) frombase/reducedim.jlwere not included in the documentation, leading to doc-tests not being run.I think the reasoning behind the omissions is that identically-named functions are already listed in the section on iterable collections in
doc/src/base/collections.md---but those functions apply to generic iterables, so theAbstractArray-signature variants are not included. One of the downside of this is that doc-tests are not run for theAbstractArrayvariants.So, in this PR, I include all the doc-string'ed, exported functions from
base/reducedim.jlin thearrays.mddocumentation. In addition, I moved functions from thecollections.mddocumentation to thearrays.mddocumentation if their type-inputs only allowAbstractArray(maximum!,minimum!,findmin!,findmax!,any!,all!,sum!,prod!, ). This latter move is perhaps not a net positive, so please let me know if that seems meaningful or not.More broadly, let me know if the additions to
arrays.mdshould go elsewhere (files, subsections, etc.)