Common.Nonempty_listA non-empty list type. This can be constructed with the usual list syntax when the compiler is inferring the type, e.g.
let x : _ Nonempty_list.t = [1;2;3]
In Core v0.18, we can replace this with Core.Nonempty_list
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'binclude Ppx_compare_lib.Comparable.S1 with type 'a t := 'a tval compare :
'a Base__Ppx_compare_lib.compare ->
'a t Base__Ppx_compare_lib.compareinclude Ppx_compare_lib.Equal.S1 with type 'a t := 'a tval equal : 'a Base__Ppx_compare_lib.equal -> 'a t Base__Ppx_compare_lib.equalinclude Ppx_hash_lib.Hashable.S1 with type 'a t := 'a tval hash_fold_t :
'a Base__Ppx_hash_lib.hash_fold ->
'a t Base__Ppx_hash_lib.hash_foldval to_list : 'a t -> 'a listval of_list_exn : 'a list -> 'a t