A possibly-empty, immutable sequence of values. The
type Sequential<Element>
may be abbreviated
[Element*]
or Element[]
.
Sequential
has two enumerated subtypes:
Empty
, abbreviated []
, represents an empty
sequence, andSequence<Element>
, abbreviated [Element+]
represents a non-empty sequence, and has the very
important subclass Tuple
.Attributes | |
clone | Source Code This sequence. Refined declaration: clone |
rest | Source Code The rest of the sequence, without the first element. Refined declaration: rest |
reversed | Source Code Reverse this sequence, returning a new sequence. Refined declaration: reversed |
sequence | Source Code This sequence. Refined declaration: sequence |
string | Source Code shared actual default String string A string of form Refined declaration: string |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Cloneable<Clone> |
Attributes inherited from: Collection<Element> |
Attributes inherited from: Correspondence<Key,Item> |
Attributes inherited from: Iterable<Element,Absent> |
Attributes inherited from: List<Element> |
Methods | |
initial | Source Code Select the first elements of this sequence, returning a sequence no longer than the given length. If this sequence is shorter than the given length, return this sequence. Otherwise return a sequence of the given length. Refined declaration: initial |
repeat | Source Code Returns a sequence formed by repeating the elements of
this sequence the given number of times, or an empty
sequence if Refined declaration: repeat |
terminal | Source Code Select the last elements of the sequence, returning a sequence no longer than the given length. If this sequence is shorter than the given length, return this sequence. Otherwise return a sequence of the given length. Refined declaration: terminal |
trim | Source Code Trim the elements satisfying the given predicate function from the start and end of this sequence, returning a sequence no longer than this sequence. Refined declaration: trim |
trimLeading | Source Code Trim the elements satisfying the given predicate function from the start of this sequence, returning a sequence no longer than this sequence. Refined declaration: trimLeading |
trimTrailing | Source Code Trim the elements satisfying the given predicate function from the end of this sequence, returning a sequence no longer than this sequence. Refined declaration: trimTrailing |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Category |
Methods inherited from: Correspondence<Key,Item> |
Methods inherited from: Iterable<Element,Absent> any, by, chain, collect, count, cycle, defaultNullElements, every, filter, find, findLast, fold, following, iterator, longerThan, map, repeat, select, shorterThan, skipping, skippingWhile, sort, taking, takingWhile |
Methods inherited from: List<Element> |
Methods inherited from: Ranged<Index,Span> |