ListFunctions
Value members
Concrete methods
Returns f
applied to the contents of as
if non-empty, otherwise, the zero element of the Monoid
for the type B
.
Returns f
applied to the contents of as
if non-empty, otherwise, the zero element of the Monoid
for the type B
.
[(as(0), as(1)), (as(1), as(2)), ... (as(size-2), as(size-1))]
[(as(0), as(1)), (as(1), as(2)), ... (as(size-2), as(size-1))]
Combinations of as
and as
, excluding same-element pairs.
Combinations of as
and as
, excluding same-element pairs.
Run p(a)
s left-to-right until it yields a true value,
answering Maybe.Just(that)
, or Maybe.empty
if nothing matched p
.
Run p(a)
s left-to-right until it yields a true value,
answering Maybe.Just(that)
, or Maybe.empty
if nothing matched p
.
As with the standard library groupBy
but preserving the fact that the values in the Map must be non-empty
As with the standard library groupBy
but preserving the fact that the values in the Map must be non-empty
Split at each point where p(as(n), as(n+1))
yields false.
Split at each point where p(as(n), as(n+1))
yields false.
Intersperse the element a
between each adjacent pair of elements in as
Intersperse the element a
between each adjacent pair of elements in as
All of the B
s, in order, and the final C
acquired by a
stateful left fold over as
.
All of the B
s, in order, and the final C
acquired by a
stateful left fold over as
.
All of the B
s, in order as
-wise, and the final C
acquired
by a stateful right fold over as
.
All of the B
s, in order as
-wise, and the final C
acquired
by a stateful right fold over as
.
scala.Nil with a sometimes more convenient type
scala.Nil with a sometimes more convenient type
A pair of passing and failing values of as
against p
.
A pair of passing and failing values of as
against p
.
A pair of the longest prefix of passing as
against p
, and
the remainder.
A pair of the longest prefix of passing as
against p
, and
the remainder.
Run p(a)
s and collect as
while p
yields false. Don't run
any p
s after the first true.
Run p(a)
s and collect as
while p
yields false. Don't run
any p
s after the first true.