package core_kernel
Module Reversed_list
Reversed_list is constructed the same way as a list, but it needs to be reversed before it can be used. This is helpful when building up a list in reverse order to force reversal before use.
val sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tval of_list_rev : 'a list -> 'a tof_list_rev reverses the input list.
val rev : 'a t -> 'a listval rev_append : 'a t -> 'a list -> 'a listval rev_map : 'a t -> f:('a -> 'b) -> 'b listval rev_filter_map : 'a t -> f:('a -> 'b option) -> 'b listval is_empty : 'a t -> boolval length : 'a t -> intval mem : 'a t -> 'a -> equal:('a -> 'a -> bool) -> bool