package coq

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

Module NeListSource

Sourcetype +'a t

Non-empty lists

Sourceval head : 'a t -> 'a
Sourceval tail : 'a t -> 'a t option
Sourceval singleton : 'a -> 'a t
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
Sourceval map_head : ('a -> 'a) -> 'a t -> 'a t
Sourceval push : 'a -> 'a t option -> 'a t
Sourceval to_list : 'a t -> 'a list
Sourceval of_list : 'a list -> 'a t

May raise Invalid_argument

Sourceval repr : 'a t -> 'a * 'a list
Sourceval of_repr : ('a * 'a list) -> 'a t
OCaml

Innovation. Community. Security.