Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A non-empty list
val of_pair : ('a * 'a) -> 'a t
Make a non-empty list from a pair.
val of_list_exn : 'a list -> 'a t
Make a non-empty list from a list, raising an exception on empty list.
val length : 'a t -> int
Return the length of the given list.
val nth_exn : 'a t -> int -> 'a
Index the given list, raising an exception on bounds error. For testing only.