mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
748 B
57 lines
748 B
map length: 2
|
|
map read: answer = 42
|
|
answer = 42
|
|
foo = 3
|
|
map length: 1
|
|
map read: data = 3
|
|
data = 3
|
|
map length: 12
|
|
map read: three = 3
|
|
one = 1
|
|
two = 2
|
|
three = 3
|
|
four = 4
|
|
five = 5
|
|
six = 6
|
|
seven = 7
|
|
eight = 8
|
|
nine = 9
|
|
ten = 10
|
|
eleven = 11
|
|
twelve = 12
|
|
map length: 12
|
|
map read: ten = 10
|
|
one = 1
|
|
two = 2
|
|
three = 3
|
|
four = 4
|
|
five = 5
|
|
six = 6
|
|
seven = 7
|
|
eight = 8
|
|
nine = 9
|
|
ten = 10
|
|
eleven = 11
|
|
twelve = 12
|
|
map length: 11
|
|
map read: seven = 7
|
|
one = 1
|
|
two = 2
|
|
three = 3
|
|
four = 4
|
|
five = 5
|
|
seven = 7
|
|
eight = 8
|
|
nine = 9
|
|
ten = 10
|
|
eleven = 11
|
|
twelve = 12
|
|
lookup with comma-ok: eight 8 true
|
|
lookup with comma-ok: nokey 0 false
|
|
false true 2
|
|
true false 0
|
|
4
|
|
42
|
|
4321
|
|
5555
|
|
tested preallocated map
|
|
|