spmallette opened a new pull request, #3612: URL: https://github.com/apache/tinkerpop/pull/3612
The `sum()`-step reference section states that `sum(local)` "works for `Collection`-type objects," which reads as though a Collection is the only accepted input. In practice, `sum(local)` also accepts a scalar `Number` and returns that number itself as an identity operation, in addition to summing the numeric elements of a Collection. This change updates the one sentence so both cases are documented: > This works for `Collection`-type objects (summing their numeric elements) and for scalar `Number` values (returning the number itself). The documentation was incomplete rather than incorrect, so this is a small wording fix scoped to the `sum()`-step section. Verified by rendering the reference docs locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
