@[implemented_by _private.Init.Data.Array.BasicAux.0.mapMonoMImp]
def
Array.mapMonoM
{m : Type u_1 → Type u_2}
{α : Type u_1}
[Monad m]
(as : Array α)
(f : α → m α)
:
m (Array α)
Monomorphic Array.mapM
. The internal implementation uses pointer equality, and does not allocate a new array
if the result of each f a
is a pointer equal value a
.
Equations
- as.mapMonoM f = Array.mapM f as