September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1,8 @@
|
|||
def a(x): " a(\(x))" | stderr | x;
|
||||
|
||||
def b(y): " b(\(y))" | stderr | y;
|
||||
|
||||
"and:", (a(true) and b(true)),
|
||||
"or:", (a(true) or b(true)),
|
||||
"and:", (a(false) and b(true)),
|
||||
"or:", (a(false) or b(true))
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
$ jq -r -n -f Short-circuit-evaluation.jq
|
||||
and:
|
||||
" a(true)"
|
||||
" b(true)"
|
||||
true
|
||||
or:
|
||||
" a(true)"
|
||||
true
|
||||
and:
|
||||
" a(false)"
|
||||
false
|
||||
or:
|
||||
" a(false)"
|
||||
" b(true)"
|
||||
true
|
||||
Loading…
Add table
Add a link
Reference in a new issue