package core_kernel

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

a non-empty version of Reversed_list.t

type 'a t =
  1. | :: of 'a * 'a Reversed_list.t
val cons : 'a -> 'a t -> 'a t
val to_rev_list : 'a t -> 'a Reversed_list.t
val rev : 'a t -> 'a nonempty_list
val rev_append : 'a t -> 'a list -> 'a nonempty_list
val rev_map : 'a t -> f:('a -> 'b) -> 'b nonempty_list
val rev_mapi : 'a t -> f:(int -> 'a -> 'b) -> 'b nonempty_list
module With_sexp_of : sig ... end

Renders sexps without reversing the list. E.g. 1::2 is represented as (1 2).

module With_rev_sexp_of : sig ... end

Renders sexps after reversing the list. E.g. 1::2 is represented as (2 1).

OCaml

Innovation. Community. Security.