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.
spanM
with p
's complement.
spanM
with p
's complement.
Run p(a)
s left-to-right until it yields a true value,
answering Some(that)
, or None
if nothing matched p
.
Run p(a)
s left-to-right until it yields a true value,
answering Some(that)
, or None
if nothing matched p
.
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.
groupByM
specialized to scalaz.Id.Id.
groupByM
specialized to scalaz.Id.Id.
[Nil, as take 1, as take 2, ..., as]
[Nil, as take 1, as take 2, ..., as]
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
.
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.
[as, as.tail, as.tail.tail, ..., Nil]
[as, as.tail, as.tail.tail, ..., Nil]
Run p(a)
s and collect as
while p
yields false.
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 true.
Run p(a)
s and collect as
while p
yields true. Don't run
any p
s after the first false.