Basics.NEL
Representation for non-empty lists
val hd : 'a t -> 'a
val last : 'a t -> 'a
val fold_left : f:('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val of_list : 'a list -> 'a t
val to_list : 'a t -> 'a list
val rev_to_list : 'a t -> 'a list
val of_rev_list : 'a list -> 'a t
val exists : f:('a -> bool) -> 'a t -> bool
val pp :
?fsep:Pretty.simple ->
?fopen:Pretty.simple ->
?fclose:Pretty.simple ->
'a Pretty.printer ->
Stdlib.Format.formatter ->
'a t ->
unit