An implementation of List
that wraps an Iterable
of
elements. All operations on this List
are performed on
the Iterable
.
Initializer |
LazyList({Element*} elems) |
Attributes | |
clone | Source Code Obtain a clone of this object. For a mutable object, this should return a copy of the object. For an immutable object, it is acceptable to return the object itself. Refined declaration: clone |
first | Source Code The first element returned by the iterator, if any,
of Refined declaration: first |
hash | Source Code shared actual default Integer hash The hash value of the value, which allows the value
to be an element of a hash-based set or key of a
hash-based map. Implementations must respect the
constraint that if Refined declaration: hash |
last | Source Code The last element returned by the iterator, if any,
of Refined declaration: last |
lastIndex | Source Code shared actual Integer? lastIndex The index of the last element of the list, or null if the list is empty. Refined declaration: lastIndex |
rest | Source Code Returns an iterable object containing all but the first element of this container. Refined declaration: rest |
reversed | Source Code Returns a Refined declaration: reversed |
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 | |
equals | Source Code Determine if two values are equal. Implementations should respect the constraints that:
Furthermore it is recommended that implementations
ensure that if Refined declaration: equals |
findLast | Source Code The last element which satisfies the given
predicate, if any, or Refined declaration: findLast |
get | Source Code Returns the value defined for the given key, or
Refined declaration: get |
iterator | Source Code An iterator for the elements belonging to this container. Refined declaration: iterator |
segment | Source Code Obtain a segment containing the mapped values starting from the given index, with the given length. Refined declaration: segment |
span | Source Code Obtain a span containing the mapped values between the two given indices. Refined declaration: span |
spanFrom | Source Code Obtain a span containing the mapped values between the starting index and the end of the receiver. Refined declaration: spanFrom |
spanTo | Source Code Obtain a span containing the mapped values between the start of the receiver and the end index. Refined declaration: spanTo |
Inherited Methods |
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> |