Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Logical-operations/Smalltalk/logical-operations-1.st
Normal file
11
Task/Logical-operations/Smalltalk/logical-operations-1.st
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|test|
|
||||
test := [ :a :b |
|
||||
('%1 %2 %3 = %4' % { a. 'and'. b. (a & b) }) displayNl.
|
||||
('%1 %2 %3 = %4' % { a. 'or'. b. (a | b) }) displayNl.
|
||||
('%1 %2 = %3' % {'not'. a. (a not) }) displayNl
|
||||
].
|
||||
|
||||
test value: true value: true.
|
||||
test value: false value: false.
|
||||
test value: true value: false.
|
||||
test value: false value: true.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
a implies: b
|
||||
a xor: b
|
||||
Loading…
Add table
Add a link
Reference in a new issue