package core_kernel

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

Module Nonempty_list.ReversedSource

a non-empty version of Reversed_list.t

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

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

Sourcemodule With_rev_sexp_of : sig ... end

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