Inherits
Object
Includes
Methods
Constructs a tuple with given values
Iterates over all values of the tuple
-
Yield Parameters:
-
| Name |
Type |
Details |
| value |
Object |
current value
|
Returns value of the tuple at position i
-
Parameters:
-
| Name |
Type |
Details |
| i |
Integer |
numeric index of the value inside the tuple, must
be 0 < i < tuple.size
|
-
Returns:
-
| Type |
Details |
Object |
value of the tuple at position i
|
Returns value of the tuple at position i
-
Parameters:
-
| Name |
Type |
Details |
| i |
Integer |
numeric index of the value inside the tuple, must
be 0 < i < tuple.size
|
-
Returns:
-
| Type |
Details |
Object |
value of the tuple at position i
|
-
Raises:
-
| Type |
Details |
IndexError |
when index is outside of tuple bounds
|
Returns value of the tuple at position i
-
Parameters:
-
| Name |
Type |
Details |
| i |
Integer |
numeric index of the value inside the tuple, must
be 0 < i < tuple.size
|
| value |
Object |
a value to assign at position i
|
-
Returns:
-
| Type |
Details |
Object |
value of the tuple at position i
|
-
Raises:
-
| Type |
Details |
IndexError |
when index is outside of tuple bounds
|
Returns tuple size
-
Returns:
-
| Type |
Details |
Integer |
tuple size
|
String representation of the tuple