package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.16.0.tar.gz
sha256=36577b55f4a4b1c64682c387de7abea932d0fd42fc0cd5406927dca344f53587

doc/coq-core.clib/Option/List/index.html

Module Option.ListSource

Sourceval cons : 'a option -> 'a list -> 'a list

List.cons x l equals y::l if x is Some y and l otherwise.

Sourceval flatten : 'a option list -> 'a list

List.flatten l is the list of all the ys such that l contains Some y (in the same order).

Sourceval find : ('a -> 'b option) -> 'a list -> 'b option

List.find f l is the first f a different from None, scrolling through elements a of l in left-to-right order; it is None if no such element exists.

Sourceval map : ('a -> 'b option) -> 'a list -> 'b list option

List.map f [a1;...;an] is the list Some [b1;...;bn] if for all i, there is a bi such that f ai is Some bi; it is None if, for at least one i, f ai is None.

OCaml

Innovation. Community. Security.