tuple_object[field-number]
-
object
tuple_object¶ -
<tuple_object>[field-number]¶ If
tis a tuple instance,t[field-number]will return the field numbered field-number in the tuple. The first field ist[1].Return: field value. Rtype: lua-value In the following example, a tuple named
tis created and then the second field intis returned.tarantool> t = box.tuple.new{'Fld#1', 'Fld#2', 'Fld#3', 'Fld#4'} --- ... tarantool> t[2] --- - Fld#2 ...
-