coq-lsp.lang
Compat.List
Astdump_plugin
Count_genargs_plugin
Example_plugin
Explain_errors
Goaldumpl_plugin
Metanejo_plugin
Savevo_plugin
Unidiff_plugin
baseline
coq-lsp.coq
coq-lsp.fleche
coq-lsp.layout-printer
coq-lsp.lsp
coq-lsp.petanque
coq-lsp.plugin
coq-lsp.request
coq-lsp.serlib
fleche_waterproof
petanque_json
petanque_shell
serlib_btauto
serlib_cc
serlib_cc_core
serlib_extraction
serlib_firstorder
serlib_firstorder_core
serlib_funind
serlib_ltac
serlib_ltac2
serlib_ltac2_ltac1
serlib_micromega
serlib_micromega_core
serlib_nsatz_core
serlib_number_string_notation_plugin
serlib_ring
serlib_ssr
serlib_ssrmatching
serlib_tauto
serlib_zify
type 'a eq = 'a -> 'a -> bool
val is_empty : 'a list -> bool
Introduced in 5.1
val insert : 'a eq -> 'a -> 'a list -> 'a list
Insert at the (first) position so that if the list is ordered wrt to the total order given as argument, the order is preserved
val remove : 'a eq -> 'a -> 'a list -> 'a list
remove eq a l Remove all occurrences of a in l
remove eq a l
a
l
val count : ('a -> bool) -> 'a list -> int
Count the number of elements satisfying a predicate
val prefix_of : 'a eq -> 'a list eq
prefix_of eq l1 l2 returns true if l1 is a prefix of l2, false otherwise. It uses eq to compare elements
prefix_of eq l1 l2
true
l1
l2
false
eq