######## test-value.az ########
(-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
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
