chore(library/init/control/combinators): remove weird List.mmap' alias for List.mfor
This commit is contained in:
parent
9abca5bad9
commit
e4f36d14ac
2 changed files with 3 additions and 7 deletions
|
|
@ -54,13 +54,9 @@ def mmap {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : α
|
|||
| (h :: t) := do h' ← f h, t' ← mmap t, pure (h' :: t')
|
||||
|
||||
@[specialize]
|
||||
def mmap' {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : α → m β) : List α → m PUnit
|
||||
def mfor {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : α → m β) : List α → m PUnit
|
||||
| [] := pure ⟨⟩
|
||||
| (h :: t) := f h *> mmap' t
|
||||
|
||||
@[specialize]
|
||||
def mfor {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : α → m β) : List α → m PUnit :=
|
||||
List.mmap' f
|
||||
| (h :: t) := f h *> mfor t
|
||||
|
||||
@[specialize]
|
||||
def mfilter {m : Type → Type v} [Monad m] {α : Type} (f : α → m Bool) : List α → m (List α)
|
||||
|
|
|
|||
|
|
@ -856,7 +856,7 @@ def setOption.elaborate : Elaborator :=
|
|||
def noKind.elaborate : Elaborator := λ stx, do
|
||||
some n ← pure stx.asNode
|
||||
| error stx "noKind.elaborate: unreachable",
|
||||
n.args.mmap' command.elaborate
|
||||
n.args.mfor command.elaborate
|
||||
|
||||
def end.elaborate : Elaborator :=
|
||||
λ cmd, do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue