package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
doc/coq-core.engine/Proofview/Monad/List/index.html
Module Monad.List
List.map f l
maps f
on the elements of l
in left to right order.
List.map f l
maps f
on the elements of l
in right to left order.
Like the regular List.fold_right
. The monadic effects are threaded right to left.
Note: many monads behave poorly with right-to-left order. For instance a failure monad would still have to traverse the whole list in order to fail and failure needs to be propagated through the rest of the list in binds which are now spurious. It is also the worst case for substitution monads (aka free monads), exposing the quadratic behaviour.
Like the regular List.fold_left
. The monadic effects are threaded left to right. It is tail-recursive if the (>>=)
operator calls its second argument in a tail position.
Like the regular List.iter
. The monadic effects are threaded left to right. It is tail-recurisve if the >>
operator calls its second argument in a tail position.
Like the regular CList.map_filter
. The monadic effects are threaded left to right.