Satisfied Interfaces: Category, Cloneable<List<Element>>, Collection<Element>, Correspondence<Integer,Element>, Iterable<Element,Null>, List<Element>, Ranged<Integer,List<Element>>
Direct Known Satisfying Interfaces: Empty, Sequence<Element>
All Known Subtypes Hierarchy

- Sequential
  - Empty
    - empty
  - Sequence
    - ArraySequence
    - Range
    - Singleton
    - Tuple

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, and
- `Sequence<Element>`, abbreviated `[Element+]` represents a non-empty sequence, and has the very important subclass `Tuple`.

See also: Tuple

Attributes
clone | Source Code shared actual default Element[] clone This sequence. Refined declaration: clone
rest | Source Code shared formal Element[] rest The rest of the sequence, without the first element. Refined declaration: rest
reversed | Source Code shared formal Element[] reversed Reverse this sequence, returning a new sequence. Refined declaration: reversed
sequence | Source Code shared actual default Element[] sequence This sequence. Refined declaration: sequence
string | Source Code shared actual default String string A string of form `"[ x, y, z ]"` where `x`, `y`, and `z` are the `string` representations of the elements of this collection, as produced by the iterator of the collection, or the string `"{}"` if this collection is empty. If the collection iterator produces the value `null`, the string representation contains the string `"null"`. Refined declaration: string

Inherited Attributes
Attributes inherited from: Object hash
Attributes inherited from: Cloneable<Clone> clone
Attributes inherited from: Collection<Element> string
Attributes inherited from: Correspondence<Key,Item> keys
Attributes inherited from: Iterable<Element,Absent> coalesced, cycled, empty, first, indexed, last, rest, sequence, size, string
Attributes inherited from: List<Element> hash, lastIndex, reversed

Methods
initial | Source Code shared actual default Element[] initial(Integer length) 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 shared actual default Element[] repeat(Integer times) Returns a sequence formed by repeating the elements of this sequence the given number of times, or an empty sequence if `times<=0`. Refined declaration: repeat
terminal | Source Code shared actual default Element[] terminal(Integer length) 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 shared actual default Element[] trim(Boolean trimming(Element elem)) 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 shared actual default Element[] trimLeading(Boolean trimming(Element elem)) 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 shared actual default Element[] trimTrailing(Boolean trimming(Element elem)) 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 equals
Methods inherited from: Category contains, containsAny, containsEvery
Methods inherited from: Correspondence<Key,Item> defines, definesAny, definesEvery, get, items
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> endsWith, equals, firstInclusion, firstOccurrence, includes, includesAt, inclusions, indexes, initial, lastInclusion, lastOccurrence, occurrences, occurs, occursAt, startsWith, terminal, trim, trimLeading, trimTrailing, withLeading, withTrailing
Methods inherited from: Ranged<Index,Span> segment, span, spanFrom, spanTo