Data update
This commit is contained in:
parent
52a6ef48dd
commit
157b70a810
604 changed files with 14253 additions and 2100 deletions
|
|
@ -1 +1 @@
|
|||
jq -n '1 as $a | 2 as $b | $a as $tmp | $b as $a | $tmp as $b | [$a,$b]'
|
||||
{a: 1, b: 2} | {a: .b, b: a.}
|
||||
|
|
|
|||
1
Task/Generic-swap/Jq/generic-swap-4.jq
Normal file
1
Task/Generic-swap/Jq/generic-swap-4.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
jq -n '1 as $a | 2 as $b | $a as $tmp | $b as $a | $tmp as $b | [$a,$b]'
|
||||
19
Task/Generic-swap/M2000-Interpreter/generic-swap-3.m2000
Normal file
19
Task/Generic-swap/M2000-Interpreter/generic-swap-3.m2000
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
dim a(10) as byte
|
||||
a(3)=2
|
||||
a(4)=100
|
||||
Print a()
|
||||
swap a(3), a(4)
|
||||
Print a()
|
||||
try ok {
|
||||
a(0)=-1
|
||||
}
|
||||
if not ok then print error$ =" Overflow Byte"
|
||||
try ok {
|
||||
a(0)=256
|
||||
}
|
||||
if not ok then print error$ =" Overflow Byte"
|
||||
a()=a()#rev()
|
||||
Print a()
|
||||
Print type$(a(3))
|
||||
Print a(10-3-1)=100
|
||||
Print a(10-4-1)=2
|
||||
Loading…
Add table
Add a link
Reference in a new issue