File: prod.md

package info (click to toggle)
jsoncons 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,300 kB
  • sloc: cpp: 143,266; sh: 34; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### prod

```cpp
number|null avg(array[number] value)
```

Returns the product of the items in an array of numbers, or null if the array is empty.

It is a type error if

- the provided value is not an array

- the array contains items that are not numbers

### Examples