SeparatedList<R, S> class

A list of elements and its separators.

Constructors

SeparatedList(List<R> elements, List<S> separators)

Properties

elements List<R>
The parsed elements.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separators List<S>
The parsed separators.
final
sequential Iterable
An (untyped) iterable over the elements and the interleaved separators in order of appearance.
no setter

Methods

foldLeft(R callback(R left, S seperator, R right)) → R
Combines the elements by grouping the elements from the left and calling callback on all consecutive elements with the corresponding separator.
foldRight(R callback(R left, S seperator, R right)) → R
Combines the elements by grouping the elements from the right and calling callback on all consecutive elements with the corresponding separator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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