Add pipe docs

This commit is contained in:
Anton Medvedev
2023-08-17 12:50:04 +02:00
parent 4cebf8d4de
commit d047c0cae2
+17
View File
@@ -110,6 +110,12 @@
<code>[:]</code>
</td>
</tr>
<tr>
<td>Pipe</td>
<td>
<code>|</code>
</td>
</tr>
</table>
Examples:
@@ -168,6 +174,17 @@ array[3:] == [4, 5]
array[:] == array
```
### Pipe Operator
The pipe operator `|` can be used to pass the result of the left-hand side
expression as the first argument of the right-hand side expression.
For example, expression `split(lower(user.Name), " ")` can be written as:
```expr
user.Name | lower() | split(" ")
```
## Built-in Functions
### all(array, predicate)