RIterator<A> class abstract

Mixed in types

Constructors

RIterator()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hasNext bool
no setter
isEmpty bool
no setterinherited
isNotEmpty bool
no setterinherited
isTraversableAgain bool
no setterinherited
iterator RIterator<A>
no setteroverride
knownSize int
Returns the number of elements in this collection, if that number is already known. If not, -1 is returned.
no setterinherited
nonEmpty bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Returns the number of elements in this collection.
no setterinherited

Methods

collect<B>(Function1<A, Option<B>> f) RIterator<B>
Returns a new collection by applying f to each element an only keeping results of type Some.
override
collectFirst<B>(Function1<A, Option<B>> f) Option<B>
Applies f to each element of this collection, returning the first element that results in a Some, if any.
inherited
concat(RIterableOnce<A> xs) RIterator<A>
corresponds<B>(covariant RIterable<B> that, Function2<A, B, bool> p) bool
Returns true if this collection has the same size as that and each corresponding element from this and that satisfies the given predicate p.
inherited
count(Function1<A, bool> p) int
Return the number of elements in this collection that satisfy the given predicate.
inherited
distinct<B>(Function1<A, B> f) RIterator<A>
distinctBy<B>(Function1<A, B> f) RIterator<A>
drop(int n) RIterator<A>
override
dropWhile(Function1<A, bool> p) RIterator<A>
override
exists(Function1<A, bool> p) bool
Returns true if any element of this collection satisfies the given predicate, false if no elements satisfy it.
inherited
filter(Function1<A, bool> p) RIterator<A>
override
filterNot(Function1<A, bool> p) RIterator<A>
override
find(Function1<A, bool> p) Option<A>
Returns the first element from this collection that satisfies the given predicate p. If no element satisfies p, None is returned.
inherited
flatMap<B>(covariant Function1<A, RIterableOnce<B>> f) RIterator<B>
override
foldLeft<B>(B z, Function2<B, A, B> op) → B
Returns a summary value by applying op to all elements of this collection, moving from left to right. The fold uses a seed value of z.
inherited
foldRight<B>(B z, Function2<A, B, B> op) → B
Returns a summary value by applying op to all elements of this collection, moving from right to left. The fold uses a seed value of z.
inherited
forall(Function1<A, bool> p) bool
Returns true if all elements of this collection satisfy the given predicate, false if any elements do not.
inherited
foreach<U>(Function1<A, U> f) → void
Applies f to each element of this collection, discarding any resulting values.
inherited
grouped(int size) RIterator<RSeq<A>>
indexOf(A elem, [int from = 0]) Option<int>
indexWhere(Function1<A, bool> p, [int from = 0]) Option<int>
map<B>(Function1<A, B> f) RIterator<B>
override
maxByOption<B>(Function1<A, B> f, Order<B> order) Option<A>
Finds the largest element in this collection by applying f to each element and using the given Order to find the greatest.
inherited
maxOption(Order<A> order) Option<A>
Finds the largest element in this collection according to the given Order.
inherited
minByOption<B>(Function1<A, B> f, Order<B> order) Option<A>
Finds the smallest element in this collection by applying f to each element and using the given Order to find the greatest.
inherited
minOption(Order<A> order) Option<A>
Finds the largest element in this collection according to the given Order.
inherited
mkString({String? start, String? sep, String? end}) String
Returns a String by using each elements toString(), adding sep between each element. If start is defined, it will be prepended to the resulting string. If end is defined, it will be appended to the resulting string.
inherited
next() → A
noSuchElement([String? message]) → Never
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
padTo(int len, A elem) RIterator<A>
patch(int from, RIterator<A> patchElems, int replaced) RIterator<A>
reduce(Function2<A, A, A> op) → A
inherited
reduceLeft(Function2<A, A, A> op) → A
inherited
reduceLeftOption(Function2<A, A, A> op) Option<A>
Returns a summary values of all elements of this collection by applying f to each element, moving left to right.
inherited
reduceOption(Function2<A, A, A> op) Option<A>
Returns a summary values of all elements of this collection by applying f to each element, moving left to right.
inherited
reduceRight(Function2<A, A, A> op) → A
inherited
reduceRightOption(Function2<A, A, A> op) Option<A>
Returns a summary values of all elements of this collection by applying f to each element, moving right to left.
inherited
sameElements(RIterableOnce<A> that) bool
scan<B>(B z, Function2<B, A, B> op) RIterableOnce<B>
Returns a new collection of the accumulation of results by applying f to all elements of the collection, including the inital value z. Traversal moves from left to right.
inherited
scanLeft<B>(B z, Function2<B, A, B> op) RIterator<B>
override
slice(int from, int until) RIterator<A>
override
sliceIterator(int from, int until) RIterator<A>
sliding(int size, [int step = 1]) RIterator<RSeq<A>>
span(Function1<A, bool> p) → (RIterator<A>, RIterator<A>)
override
splitAt(int n) → (RIterableOnce<A>, RIterableOnce<A>)
Returns 2 collectins of all elements before and after index n respectively.
inherited
take(int n) RIterator<A>
override
takeWhile(Function1<A, bool> p) RIterator<A>
override
tapEach<U>(Function1<A, U> f) RIterableOnce<A>
Applies f to each element in this collection, discarding any results and returns this collection.
inherited
toIList() IList<A>
Returns an IList with the same elements as this collection.
inherited
toIndexedSeq() IndexedSeq<A>
Returns an IndexedSeq with the same elements as this collection.
inherited
toISet() ISet<A>
Returns an ISet with the same elements as this collection, duplicates removed.
inherited
toIVector() IVector<A>
Returns an IVector with the same elements as this collection.
inherited
toList({bool growable = true}) List<A>
Returns a new List with the same elements as this collection.
inherited
toSeq() RSeq<A>
Returns a RSeq with the same elements as this collection.
inherited
toString() String
A string representation of this object.
inherited
zip<B>(RIterableOnce<B> that) RIterator<(A, B)>
zipAll<B>(RIterableOnce<B> that, A thisElem, B thatElem) RIterator<(A, B)>
zipWithIndex() RIterator<(A, int)>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

empty<A>() RIterator<A>
fill<A>(int len, A elem) RIterator<A>
fromDart<A>(Iterator<A> it) RIterator<A>
iterate<A>(A start, Function1<A, A> f) RIterator<A>
single<A>(A a) RIterator<A>
tabulate<A>(int len, Function1<int, A> f) RIterator<A>
unfold<A, S>(S initial, Function1<S, Option<(A, S)>> f) RIterator<A>