Tuple(S)
array1.spad line 67
[edit on github]
This domain is used to interface with the interpreter's
notion of comma-delimited sequences of values.
- # : % -> NonNegativeInteger
#(x)
returns the number of elements in tuple x
- = : (%, %) -> Boolean if S has SetCategory
- from BasicType
- coerce : PrimitiveArray(S) -> %
coerce(a)
makes a tuple from primitive array a
- coerce : % -> OutputForm if S has CoercibleTo(OutputForm)
- from CoercibleTo(OutputForm)
- coerce : % -> PrimitiveArray(S)
- from CoercibleTo(PrimitiveArray(S))
- latex : % -> String if S has SetCategory
- from SetCategory
- select : (%, NonNegativeInteger) -> S
select(x, n)
returns the n
-th element of tuple x
. tuples are 0-based
- ~= : (%, %) -> Boolean if S has SetCategory
- from BasicType
CoercibleTo(OutputForm)
BasicType
SetCategory
CoercibleTo(PrimitiveArray(S))