A sequence with no elements. The type Empty
may be
abbreviated []
, and an instance is produced by the
expression []
. That is, in the following expression,
e
has type []
and refers to the value []
:
[] none = [];
(Whether the syntax []
refers to the type or the
value depends upon how it occurs grammatically.)
Attributes | |
clone | Source Code shared actual [] clone Returns an Refined declaration: clone |
coalesced | Source Code shared actual [] coalesced Returns an Refined declaration: coalesced |
empty | Source Code shared actual Boolean empty Returns Refined declaration: empty |
first | Source Code shared actual Null first Returns Refined declaration: first |
indexed | Source Code shared actual [] indexed Returns an Refined declaration: indexed |
last | Source Code shared actual Null last Returns Refined declaration: last |
lastIndex | Source Code shared actual Null lastIndex Returns Refined declaration: lastIndex |
rest | Source Code shared actual [] rest Returns an Refined declaration: rest |
reversed | Source Code shared actual [] reversed Returns an Refined declaration: reversed |
sequence | Source Code shared actual [] sequence Returns an Refined declaration: sequence |
size | Source Code shared actual Integer size Returns 0. Refined declaration: size |
string | Source Code shared actual String string Returns a string description of the empty sequence:
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> |
Attributes inherited from: Element[] |
Methods | |
any | Source Code Return Refined declaration: any |
by | Source Code shared actual [] by(Integer step) Produce an (0..10).by(3) results in an iterable object with the elements
Refined declaration: by |
chain | Source Code shared actual Iterable<Other,OtherAbsent> chain<Other, OtherAbsent>(Iterable<Other,OtherAbsent> other) Returns Refined declaration: chain |
collect | Source Code A sequence containing the results of applying the
given mapping to the elements of this container. An
eager counterpart to Refined declaration: collect |
contains | Source Code Returns Refined declaration: contains |
count | Source Code Returns 0 for any given predicate. Refined declaration: count |
defines | Source Code Determines if there is a value defined for the given key. Refined declaration: defines |
every | Source Code Return Refined declaration: every |
filter | Source Code An Refined declaration: filter |
find | Source Code The first element which satisfies the given
predicate, if any, or Refined declaration: find |
fold | Source Code shared actual Result fold<Result>(Result initial, Result accumulating(Result partial, Nothing element)) The result of applying the accumulating function to each element of this container in turn. Refined declaration: fold |
following | Source Code An Refined declaration: following |
get | Source Code Returns Refined declaration: get |
iterator | Source Code Returns an iterator that is already exhausted. Refined declaration: iterator |
map | Source Code An Refined declaration: map |
segment | Source Code Returns an Refined declaration: segment |
select | Source Code A sequence containing the elements of this
container that satisfy the given predicate. An
eager counterpart to Refined declaration: select |
skipping | Source Code shared actual [] skipping(Integer skip) Produce an Refined declaration: skipping |
sort | Source Code A sequence containing the elements of this container, sorted according to a function imposing a partial order upon the elements. For convenience, the functions "Hello World!".sort(byIncreasing((Character c) => c.lowercased)) This operation is eager by nature. Refined declaration: sort |
span | Source Code Returns an Refined declaration: span |
spanFrom | Source Code shared actual [] spanFrom(Integer from) Returns an Refined declaration: spanFrom |
spanTo | Source Code shared actual [] spanTo(Integer to) Returns an Refined declaration: spanTo |
taking | Source Code shared actual [] taking(Integer take) Produce an Refined declaration: taking |
withLeading | Source Code Returns a new Refined declaration: withLeading |
withTrailing | Source Code Returns a new Refined declaration: withTrailing |
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> |