Provides an interface for iterating over values that are bundled with the Meta state
they are valid in.
- next : MetaM (Option (α × SavedState))
Function for getting next value and state pair.
Instances For
Convert a list into an iterator with the current state.
Instances For
Map and filter results of iterator and returning only those values returned
by f.
Instances For
Find the first value in the iterator while resetting state or call failure
if empty.
Instances For
def
Lean.Meta.Iterator.firstM
{α β : Type}
(L : Meta.Iterator α)
(f : α → MetaM (Option β))
:
MetaM β
Return the first value returned by the iterator that f succeeds on.