Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-1.l
Normal file
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-1.l
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: (& 6 3)
|
||||
-> 2
|
||||
|
||||
: (& 7 3 1)
|
||||
-> 1
|
||||
8
Task/Bitwise-operations/PicoLisp/bitwise-operations-2.l
Normal file
8
Task/Bitwise-operations/PicoLisp/bitwise-operations-2.l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
: (bit? 1 2)
|
||||
-> NIL
|
||||
|
||||
: (bit? 6 3)
|
||||
-> NIL
|
||||
|
||||
: (bit? 6 15 255)
|
||||
-> 6
|
||||
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-3.l
Normal file
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-3.l
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: (| 1 2)
|
||||
-> 3
|
||||
|
||||
: (| 1 2 4 8)
|
||||
-> 15
|
||||
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-4.l
Normal file
5
Task/Bitwise-operations/PicoLisp/bitwise-operations-4.l
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: (x| 2 7)
|
||||
-> 5
|
||||
|
||||
: (x| 2 7 1)
|
||||
-> 4
|
||||
11
Task/Bitwise-operations/PicoLisp/bitwise-operations-5.l
Normal file
11
Task/Bitwise-operations/PicoLisp/bitwise-operations-5.l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
: (>> 1 8)
|
||||
-> 4
|
||||
|
||||
: (>> 3 16)
|
||||
-> 2
|
||||
|
||||
: (>> -3 16)
|
||||
-> 128
|
||||
|
||||
: (>> -1 -16)
|
||||
-> -32
|
||||
Loading…
Add table
Add a link
Reference in a new issue