IStdlib.RevList
include Ppx_compare_lib.Comparable.S1 with type 'a t := 'a t
val compare :
'a Base__Ppx_compare_lib.compare ->
'a t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S1 with type 'a t := 'a t
val equal : 'a Base__Ppx_compare_lib.equal -> 'a t Base__Ppx_compare_lib.equal
val empty : 'a t
Return empty list
val is_empty : 'a t -> bool
Check if the list is empty
val to_list : 'a t -> 'a list
Return normal-ordered list
val of_list : 'a list -> 'a t
Make reverse-ordered list from normal-ordered one
append (of_list l1) (of_list l2)
is the same as of_list (List.append l1 l2)
val exists : 'a t -> f:('a -> bool) -> bool
Similar to List.exists
val rev_map : 'a t -> f:('a -> 'b) -> 'b list
Similar to List.rev_map
, so return normal-ordered list
val rev_map_append : 'a t -> 'b list -> f:('a -> 'b) -> 'b list
Similar to List.rev_map_append
val rev_partition_map :
'a t ->
f:('a -> ('b, 'c) IStdlib.IStd.Either.t) ->
'b list * 'c list
Similar to List.partition_map
, but return normal-ordered lists