package coq-lsp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Compat.ListSource

Sourcetype 'a eq = 'a -> 'a -> bool
Sourceval is_empty : 'a list -> bool

Introduced in 5.1

Sourceval 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

Sourceval remove : 'a eq -> 'a -> 'a list -> 'a list

remove eq a l Remove all occurrences of a in l

Sourceval count : ('a -> bool) -> 'a list -> int

Count the number of elements satisfying a predicate

Sourceval 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