100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125
a .. 1234
a .. 127
1, 2, 3, 4, 5
11, 12, 13, 14, 15, 16
1, 2, 3, 14, 5, 6
11, 12, 13, 14, 15, 16
11, 12, 13, 4, 15, 16
A B C D
expected error occurs
expected error occurs
expected error occurs
expected error occurs
A B C D
expected error occurs
expected error occurs
expected error occurs
expected error occurs
A B C D
expected error occurs
expected error occurs
expected error occurs
expected error occurs
00000001, 00000002, 00000004, 00000008, 00000010, 00000020, 00000040, 00000080, 00000100, 00000200, 00000400, 00000800, 00001000, 00002000, 00004000, 00008000, 00010000, 00020000, 00040000, 00080000, 00100000, 00200000, 00400000, 00800000, 01000000, 02000000, 04000000, 08000000, 10000000, 20000000, 40000000, 80000000
80000000, 40000000, 20000000, 10000000, 08000000, 04000000, 02000000, 01000000, 00800000, 00400000, 00200000, 00100000, 00080000, 00040000, 00020000, 00010000, 00008000, 00004000, 00002000, 00001000, 00000800, 00000400, 00000200, 00000100, 00000080, 00000040, 00000020, 00000010, 00000008, 00000004, 00000002, 00000001
(-3) + 4 .. 1
-3 * 4 .. -12
'3' * 4 .. 3333
3 == 3 .. true
3 < 4 .. true
3 <= 4 .. true
3 > 4 .. false
3 >= 4 .. false
3 + 2 + 4 .. 9
3 - 2 - 4 .. -3
3 * 2 * 4 .. 24
3 ** 2 ** 3 .. 729
3 ** 2 ** 3 .. 729
3 ** (2 ** 3) .. 6561
3 ** 2 * 4 .. 36
3 ** (2 * 3) .. 729
f(30) .. 0.5
f(30) .. 0.5
f(90) .. 1
['aaa', 'bbbb', 'ccc'] + ['3', '4', '5'] .. ['aaa3', 'bbbb4', 'ccc5']
(3 + 3j) * (3 - 3j) .. 18
math.conj(3 + 2j) .. 3-2j
math.abs(3 + 2j) .. 3.60555
math.sqrt(math.real(3 + 2j) * math.real(3 + 2j) + math.imag(3 + 2j) * math.imag(3 + 2j)) .. 3.60555
math.norm(3 + 2j) .. 13
math.sqrt(math.norm(3 + 2j)) .. 3.60555
(math.arg(3 + 2j) * 180) / math.pi .. 33.6901
0 in [2, 3, 4] .. false
2 in [2, 3, 4] .. true
4 in [2, 3, 4] .. true
[0, 2, 3] in [2, 3, 4] .. [false, true, true]
[0, 2, 3, 4, 5] in [2, 3, 4] .. [false, true, true, true, false]
[0, 2, 3, 4, 5] in 5 .. [false, false, false, false, true]
['123456', '789012', '3.141', '123e+10', '0xabc', '0312', 'abcde', '123x']::tonumber() .. [123456, 789012, 3.141, 1.23e+12, 2748, 202, nil, 123]
['123456', '789012', '3.141', '123e+10', '0xabc', '0312', 'abcde', '123x']::tonumber():zero .. [123456, 789012, 3.141, 1.23e+12, 2748, 202, 0, 123]
['123456', '789012', '3.141', '123e+10', '0xabc', '0312', 'abcde', '123x']::tonumber():strict .. [123456, 789012, 3.141, 1.23e+12, 2748, 202, nil, nil]
a = 2
a += 3 .. 5
a *= 3 .. 15
a /= 3 .. 5
a -= 3 .. 2
a **= 3 .. 8
number number complex boolean module string list dict function symbol
hoge           isdefined:false  undefined
function       isdefined:true   function
math.sin       isdefined:true   function
0      number   defined:y symbol:n boolean:n number:y complex:y string:n module:n class:n y
3.14   number   defined:y symbol:n boolean:n number:y complex:y string:n module:n class:n y
1+2j   complex  defined:y symbol:n boolean:n number:n complex:y string:n module:n class:n n
true   boolean  defined:y symbol:n boolean:y number:n complex:n string:n module:n class:n n
<module:sys> module   defined:y symbol:n boolean:n number:n complex:n string:n module:y class:n n
foo    string   defined:y symbol:n boolean:n number:n complex:n string:y module:n class:n n
%{}    dict     defined:y symbol:n boolean:n number:n complex:n string:n module:n class:n n
x()    function defined:y symbol:n boolean:n number:n complex:n string:n module:n class:n n
sym    symbol   defined:y symbol:y boolean:n number:n complex:n string:n module:n class:n n
