MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / sum

Function sum

tools/load-test.js:82–84  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

80 * and returns 6
81 */
82function sum(values) {
83 return values.reduce((a,b) => (a+b));
84}
85
86/* Takes [1, 2, 3]
87 * and returns {mean: 2, stddev: 0.816}

Callers 3

statsFunction · 0.85
pltest.pyFile · 0.85
renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected