package stdune

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

Module Stdune.Nonempty_listSource

A (to be expanded) collection of functions for working with non-empty lists.

Sourcetype 'a t =
  1. | :: of 'a * 'a list
Sourceval hd : 'a t -> 'a
Sourceval last : 'a t -> 'a
Sourceval destruct_last : 'a t -> 'a list * 'a
Sourceval rev : 'a t -> 'a t
Sourceval of_list : 'a list -> 'a t option
Sourceval of_list_exn : 'a list -> 'a t
Sourceval to_list : 'a t -> 'a list
Sourceval to_list_map : 'a t -> f:('a -> 'b) -> 'b list
Sourceval map : 'a t -> f:('a -> 'b) -> 'b t
Sourceval compare : 'a t -> 'a t -> compare:('a -> 'a -> Ordering.t) -> Ordering.t
Sourceval concat : 'a list -> 'a t -> 'a t
Sourceval (@) : 'a list -> 'a t -> 'a t

same as concat.