June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,14 @@
|
|||
USING: combinators.short-circuit.smart io prettyprint ;
|
||||
IN: rosetta-code.short-circuit
|
||||
|
||||
: a ( ? -- ? ) "(a)" write ;
|
||||
: b ( ? -- ? ) "(b)" write ;
|
||||
|
||||
"f && f = " write { [ f a ] [ f b ] } && .
|
||||
"f || f = " write { [ f a ] [ f b ] } || .
|
||||
"f && t = " write { [ f a ] [ t b ] } && .
|
||||
"f || t = " write { [ f a ] [ t b ] } || .
|
||||
"t && f = " write { [ t a ] [ f b ] } && .
|
||||
"t || f = " write { [ t a ] [ f b ] } || .
|
||||
"t && t = " write { [ t a ] [ t b ] } && .
|
||||
"t || t = " write { [ t a ] [ t b ] } || .
|
||||
Loading…
Add table
Add a link
Reference in a new issue