public static class Type.Tuple extends Type.Structured
Type.tuple(int)
, Value.Tuple
.Modifier and Type | Class and Description |
---|---|
static class |
Type.Tuple.GP
A Tuple Type with specific field Types,
Type.Tuple.GP.elts . |
Type.Atomic, Type.Char, Type.Cts, Type.Discrete, Type.Enum, Type.Function, Type.Int, Type.Model, Type.Option, Type.Structured, Type.Triv, Type.Tuple, Type.TYPE, Type.Vector
Value.Bool, Value.Chars, Value.Defer, Value.Inc_Or, Value.Lambda, Value.List, Value.Maybe, Value.Real, Value.Scannable
Modifier and Type | Field and Description |
---|---|
int |
k
The number of componets (fields) of 'this' Typle Type.
|
BOOL, BOOL_N, CHAR, CHAR_N, CHARS, CTS, CTS_N, DNA, ENUM_N, FUNCTION, FUNCTION_N, INC_OR, INT, INT_N, LIST, MATRIX_CTS, MATRIX_INT, MAYBE, MODEL, MODEL_N, name, OPTION_N, PAIR, TRIPLE, TRIV, TRIV_N, TUPLE_N, TYPE, TYPE_N, VECTOR, VECTOR_CHARS, VECTOR_CTS, VECTOR_INT, VECTOR_N
Constructor and Description |
---|
Tuple(java.lang.String name,
int k) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Type t)
Does 'this' Tuple Type contain Type 't'?
|
int |
n()
Return this Option Value's number within its
Option
Type . |
int |
nElts()
This default returns 0; override it if necessary.
|
boolean |
ni(Value v)
Is Value v's Type in 'this' Tuple Type?
|
closes, compareTo, opens, separator
public int n()
Value.Option
Type
.n
in class Value.Option
public int nElts()
Type