@[implemented_by _private.Batteries.Data.Vector.Basic.0.Vector.scanlMUnsafe]
def
Vector.scanlM
{m : Type u_1 → Type u_2}
{β : Type u_1}
{α : Type u_3}
{n : Nat}
[Monad m]
(f : β → α → m β)
(init : β)
(as : Vector α n)
:
Fold an effectful function f over the array from the left, returning the list of partial results.
Instances For
@[implemented_by _private.Batteries.Data.Vector.Basic.0.Vector.scanrMUnsafe]
def
Vector.scanrM
{m : Type u_1 → Type u_2}
{α : Type u_3}
{β : Type u_1}
{n : Nat}
[Monad m]
(f : α → β → m β)
(init : β)
(as : Vector α n)
:
Fold an effectful function f over the array from the right, returning the list of partial results.