Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
11
Task/Logical-operations/Icon/logical-operations-2.icon
Normal file
11
Task/Logical-operations/Icon/logical-operations-2.icon
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(let pad (comp str (pad-right " " 10)))
|
||||
|
||||
(print "a b | (and a b) (or a b) (not a) (xor a b)")
|
||||
(print (str* "-" 20) "+" (str* "-" 40))
|
||||
|
||||
(join "\n"
|
||||
(for a [false :a]
|
||||
b [false :b]
|
||||
(... str (pad a) (pad b) "| "
|
||||
(for op [and or not xor]
|
||||
(pad (if (= op not) (op a) (op a b)))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue