Skip to content

Commit 0233a2d

Browse files
committed
docs: update the function reference
1 parent 7408cd6 commit 0233a2d

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

reference/functions.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,13 +1085,11 @@ jsonquery(data, 'filter(regex(.message, "like|awesome", "i"))')
10851085

10861086
## add (`+`)
10871087

1088-
Add two or more values. The operator evaluated left-to-right (left associative).
1088+
Add two values.
10891089

10901090
```text
10911091
a + b
1092-
a + b + c + ...
10931092
add(a, b)
1094-
add(a, b, c, ...)
10951093
```
10961094

10971095
Examples:
@@ -1111,13 +1109,11 @@ jsonquery(user, '(.firstName + " ") + .lastName')
11111109

11121110
## subtract (`-`)
11131111

1114-
Subtract two or more values. The operator evaluated left-to-right (left associative).
1112+
Subtract two values.
11151113

11161114
```text
11171115
a - b
1118-
a - b - c - ...
11191116
subtract(a, b)
1120-
subtract(a, b, c, ...)
11211117
```
11221118

11231119
Examples:
@@ -1130,13 +1126,11 @@ jsonquery(data, '.a - .b') // 4
11301126

11311127
## multiply (`*`)
11321128

1133-
Multiply two or more values. The operator evaluated left-to-right (left associative).
1129+
Multiply two values.
11341130

11351131
```text
11361132
a * b
1137-
a * b * c * ...
11381133
multiply(a, b)
1139-
multiply(a, b, c, ...)
11401134
```
11411135

11421136
Examples:
@@ -1149,13 +1143,11 @@ jsonquery(data, '.a * .b') // 12
11491143

11501144
## divide (`/`)
11511145

1152-
Divide two or more values. The operator evaluated left-to-right (left associative).
1146+
Divide two values.
11531147

11541148
```text
11551149
a / b
1156-
a / b / c / ...
11571150
divide(a, b)
1158-
divide(a, b, c, ...)
11591151
```
11601152

11611153
Examples:
@@ -1185,13 +1177,11 @@ jsonquery(data, '.a ^ .b') // 8
11851177

11861178
## mod (`%`)
11871179

1188-
Calculate the remainder (the modulus) of `a` divided by `b`, like `a % b`. Multiple values can be chained, in that case they are evaluated left-to-right (left associative).
1180+
Calculate the remainder (the modulus) of `a` divided by `b`, like `a % b`.
11891181

11901182
```text
11911183
a % b
1192-
a % b % c % ...
11931184
mod(a, b)
1194-
mod(a, b, c, ...)
11951185
```
11961186

11971187
Examples:

0 commit comments

Comments
 (0)