A Monadic version of the builtin List.mergeSort #
This can be instantiated with Id to recover the original, or with TimeM or FreeM for
algorithmic analysis.
@[irreducible]
def
List.mergeSortM
{m : Type → Type u_1}
[Monad m]
{α : Type}
(xs : List α)
(le : α → α → m Bool)
:
m (List α)
A monadic version of List.mergeSortM
Equations
Instances For
@[simp]
theorem
List.mergeSortM_pure
{m : Type → Type u_1}
[Monad m]
{α : Type}
[LawfulMonad m]
(xs : List α)
(le : α → α → Bool)
: