How do I compare arrays or box.tuple objects In Tarantool?

88 views Asked by At

Might be a novice question, but still. How do I compare arrays or box.tuple objects In Tarantool? I need to check if their values are equal?

1

There are 1 answers

0
LapaevPavel On

To compare value please use this code

if #a~=#b ret false 
for i=1,#a if a[i]~=b[i] ret false
ret true