Tuple SΒΆ
array1.spad line 67 [edit on github]
S: Type
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 tuplex
- =: (%, %) -> Boolean if S has SetCategory
from BasicType
- ~=: (%, %) -> Boolean if S has SetCategory
from BasicType
- coerce: % -> OutputForm if S has CoercibleTo OutputForm
from CoercibleTo OutputForm
- coerce: % -> PrimitiveArray S
from CoercibleTo PrimitiveArray S
- coerce: PrimitiveArray S -> %
coerce(a)
makes a tuple from primitive array a
- latex: % -> String if S has SetCategory
from SetCategory
- select: (%, NonNegativeInteger) -> S
select(x, n)
returns then
-th element of tuplex
. tuples are 0-based
BasicType if S has SetCategory
CoercibleTo OutputForm if S has CoercibleTo OutputForm
SetCategory if S has SetCategory