ArrayCursor
BatchCursor type that works over an underlying Array
.
BatchCursor type that works over an underlying Array
.
NOTE: all transformations happen by copying from the source array into a modified copy, hence all transformations have strict behavior!
To build an instance, prefer BatchCursor.fromArray
.
Value members
Constructors
Concrete methods
Inherited methods
Applies a binary operator to a start value and all elements of this cursor, going left to right.
Applies a binary operator to a start value and all elements of this cursor, going left to right.
NOTE: applying this function on the cursor will consume it completely.
- Type Params
- R
is the result type of the binary operator.
- Value Params
- initial
is the start value.
- op
the binary operator to apply
- Returns
the result of inserting
op
between consecutive elements of this cursor, going left to right with the start valueinitial
on the left. Returnsinitial
if the cursor is empty.- Inherited from
- BatchCursor
Returns true
in case our cursor is empty or false
if there
are more elements to process.
Returns true
in case our cursor is empty or false
if there
are more elements to process.
Alias for !cursor.hasNext()
.
- Inherited from
- BatchCursor
Returns true
in case our cursor has more elements
to process or false
if the cursor is empty.
Returns true
in case our cursor has more elements
to process or false
if the cursor is empty.
Alias for hasNext.
- Inherited from
- BatchCursor
Converts this cursor into an Array
,
consuming it in the process.
Converts this cursor into an Array
,
consuming it in the process.
- Inherited from
- BatchCursor
Converts this cursor into a Scala immutable List
,
consuming it in the process.
Converts this cursor into a Scala immutable List
,
consuming it in the process.
- Inherited from
- BatchCursor