Docs: arrays, collections, numbers and types fixes #63818
do we want to allow narrowing the eltype? e.g. if the original contained missing but the setdiff filtered missings
This is inaccurate about the keys. Sayeth Claude to write here instead:
keys(p) is the key iterator given at construction, which pairs chooses from the container's key space (for an array, CartesianIndices by default or LinearIndices via pairs(IndexLinear(), A)), and values(p) returns the container itself. Entries can be read like those of other AbstractDicts. p[key] indexes the container directly, so it accepts any key in the container's key space, while haskey(p, key) only consults keys(p). p[key] = value writes through to the container if it supports setindex!, but keys cannot be added or removed.
"different function .. happens to be named"
I'm not entirely sure what this sentence is envisioning warning me about. Maybe drop it?
Design question: Is the field public API or is the convert function more canonical? Not likely we'll change either, but still:
The numeric level is available with `convert(Int32, level)`.
"The default is 256 unless it is changed" seems like a somewhat empty logic statement. Though I don't know how you'd document that it is the default configuration.
Maybe saying something like "initially the precision is set to 256 bits, until the default is changed with [setprecision](@ref)"?
(or a tuple of them, if we're trying to be entirely pedantic here)
Should we say unsplatting instead of slurping? (since unsplat is the function name now for this, IIRC)
`Vector`, respectively, so collection types may want to add methods to these functions, for example to return a
adienes
KristofferC
A batch of small, independent documentation fixes, one commit per issue (bundled to save CI time). These were originally generated by AI, but I have read through and reviewed them manually. Reviewing commit by commit is easiest.
issortedrequiresltto be a strict weak order (fixes #19280)size(A, d)is 1 ford > ndims(A)(fixes #23985)Base.Pairsdocstring (fixes #25675)@fastmathrewrites function calls syntactically (fixes #26828)levelfield ofLogLevel(fixes #40460)BigFloatprecision (fixes #41215)Base.Checkedfunctions take integer arguments (fixes #41844)Base.ReinterpretArraydocstring (fixes #45591):compactis set when printing containers (fixes #45776)vectelement type in terms of documentedpromote_type(fixes #46092)invoketakes a tuple type of argument types (fixes #46285)setdiffreturns distinct elements (fixes #47006)LinearIndicesuses the axes of the given ranges (fixes #48613)digits/sigdigitssignatures intrunc,floorandceildocstrings (fixes #48762)typejoindoes not return the narrowest common supertype (fixes #53436)checked_lengthdocstring (fixes #53645)Valparameters and instances ofType{T}(fixes #53734)isassignedwith multiple indices and which methods to specialize (fixes #54169)Base.Generatordocstring in the manual (fixes #54194)Base.restandBase.split_restin the iteration interface docs (fixes #59611)🤖 Generated with Claude Code