Prelude.List1Non-Empty Lists
This is a type of lists that excludes the possibility of the empty list. Thus, hd cannot raise an exception and you never need to check for the possibility of the empty list.
val singleton : 'a -> 'a tval make : int -> (int -> 'a) -> 'a tval length : 'a t -> intval len : 'a t -> intval to_list : 'a t -> 'a listval of_list : 'a list -> 'a tval hd : 'a t -> 'aval tl : 'a t -> 'a listval last : 'a t -> 'aval iter : ('a -> unit) -> 'a t -> unitval foldl : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aval foldr : ('a -> 'b -> 'b) -> 'b -> 'a t -> 'b