Step equations for monadic list search #
Core List.findM? p xs runs the effectful test p on each element of xs from left to right and
returns the first element for which p returns true, or none. Core defines List.findM?
without exposing its body and has no nil or cons equations for a general monad, so this module
imports Init.Data.List.Control with import all, as
CslibFrontier.Foundations.Control.Monad.FilterM does, and provides those two equations,
List.findM?_nil and List.findM?_cons, and nothing else. Both are general list lemmas destined
for Lean core or Batteries.