Skip to content

Commit 2d74adb

Browse files
authored
add some new operators (#530)
1 parent 779a173 commit 2d74adb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

book/operators.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ Nushell supports the following operators for common math, logic, and string oper
2323
| `not` | logical not |
2424
| `&&`, `and` | and two Boolean values |
2525
| `\|\|`, `or`| or two Boolean values |
26+
| `fdiv` | floor division |
27+
| `**` | pow |
28+
| `bit-or` | bitwise or |
29+
| `bit-xor` | bitwise xor |
30+
| `bit-and` | bitwise and |
31+
| `bit-shl` | bitwise shift left |
32+
| `bit-shr` | bitwise shift right |
33+
| `starts-with` | string starts with |
34+
| `ends-with` | string ends with |
2635

2736
Parentheses can be used for grouping to specify evaluation order or for calling commands and using the results in an expression.
2837

0 commit comments

Comments
 (0)