Add general ? operator
This commit is contained in:
1 parent
7fce34292e
commit
7d3a44a1e2
3 files changed
+22
No files matched your search
@@ -1584,6 +1584,16 @@ sections:
|
||||
input: 'true'
|
||||
output: ['"some exception"']
|
||||
|
||||
- title: `?` operator
|
||||
body: |
|
||||
|
||||
The `?` operator, used as `EXP?`, is shorthand for `try EXP`.
|
||||
|
||||
examples:
|
||||
- program: '[.[]|(.a)?]'
|
||||
input: '[{}, true, {"a":1}'
|
||||
output: ['[null, 1]']
|
||||
|
||||
- title: Advanced features
|
||||
body: |
|
||||
Variables are an absolute necessity in most programming languages, but
|
||||
|
||||
Reference in new issue
Block a user