You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The function documentation indicates that apply([[1,2], [3,4]], 1, sum) should produce [3, 7]. However, in the REPL it instead produces the error No access to property "apply".
To Reproduce
Enter apply([[1,2], [3,4]], 1, sum) in the REPL on the homepage.
The text was updated successfully, but these errors were encountered:
* chore: Rename `apply` to `mapSlices`
This renaming conforms with the Julia name for the function formerly
called `apply`, and allows it to be called from the expression parser.
The previous name `apply` is kept as an alias for `mapSlices`, for
backward compatibility. This commit implements an `alias` metadata
property for function factories to facilitate the `apply` alias for
`mapSlices`.
As a separate bonus, this PR corrects several typos in function docs
and removes now-passing doc tests from the list of "known failing" doc
tests to get down to 45 known failures and 136 total issues in doc tests.
(Most of the excess of 136 as compared to 45 are just due to roundoff
error/slight inaccuracy of what the documentation claims the result will
be and the actual result returned by mathjs. When the 45 are eliminated,
a reasonable numeric tolerance can be decided on for doc testing and
then the doc tests can be made binding rather than advisory.
* refactor: changes per PR review
---------
Co-authored-by: Jos de Jong <[email protected]>
Describe the bug
The function documentation indicates that
apply([[1,2], [3,4]], 1, sum)
should produce[3, 7]
. However, in the REPL it instead produces the errorNo access to property "apply"
.To Reproduce
Enter
apply([[1,2], [3,4]], 1, sum)
in the REPL on the homepage.The text was updated successfully, but these errors were encountered: