######## test-value.az ########
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]
to_number(["123456", "789012", "3.141", "123e+10", "0xabc", "0312", "abcde", "123x"]) .. [123456, 789012, 3.141, 1.23e+12, 2748, 202, nil, 123]
to_number(["123456", "789012", "3.141", "123e+10", "0xabc", "0312", "abcde", "123x"]):zero .. [123456, 789012, 3.141, 1.23e+12, 2748, 202, 0, 123]
to_number(["123456", "789012", "3.141", "123e+10", "0xabc", "0312", "abcde", "123x"]):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           is_defined:false  undefined
lambda         is_defined:true   Function
math.sin       is_defined:true   Function
0      number   defined:y symbol:n boolean:n number:y complex:n string:n module:n class:n
3.14   number   defined:y symbol:n boolean:n number:y complex:n string:n module:n class:n
1+2j   complex  defined:y symbol:n boolean:n number:n complex:y string:n module:n class:n
true   boolean  defined:y symbol:n boolean:y number:n complex:n string:n module:n class:n
<module:sys> Module   defined:y symbol:n boolean:n number:n complex:n string:n module:y class:n
foo    string   defined:y symbol:n boolean:n number:n complex:n string:y module:n class:n
%{}    Dict     defined:y symbol:n boolean:n number:n complex:n string:n module:n class:n
<>()   Function defined:y symbol:n boolean:n number:n complex:n string:n module:n class:n
sym    symbol   defined:y symbol:y boolean:n number:n complex:n string:n module:n class:n
