Module Subreddit_name.Hash_queue
val length : ('a, 'b) Core__Hash_queue.t -> int
val is_empty : ('a, 'b) Core__Hash_queue.t -> bool
val iter : ('b, 'a) Core__Hash_queue.t -> f:('a -> unit) -> unit
val fold :
('b, 'a) Core__Hash_queue.t ->
init:'acc ->
f:('acc -> 'a -> 'acc) ->
'acc
val fold_result :
('b, 'a) Core__Hash_queue.t ->
init:'acc ->
f:('acc -> 'a -> ('acc, 'e) Base__.Result.t) ->
('acc, 'e) Base__.Result.t
val fold_until :
('b, 'a) Core__Hash_queue.t ->
init:'acc ->
f:('acc -> 'a -> ('acc, 'final) Base__Container_intf.Continue_or_stop.t) ->
finish:('acc -> 'final) ->
'final
val exists : ('b, 'a) Core__Hash_queue.t -> f:('a -> bool) -> bool
val for_all : ('b, 'a) Core__Hash_queue.t -> f:('a -> bool) -> bool
val count : ('b, 'a) Core__Hash_queue.t -> f:('a -> bool) -> int
val sum :
(module Base__Container_intf.Summable with type t = 'sum) ->
('b, 'a) Core__Hash_queue.t ->
f:('a -> 'sum) ->
'sum
val find : ('b, 'a) Core__Hash_queue.t -> f:('a -> bool) -> 'a option
val find_map : ('c, 'a) Core__Hash_queue.t -> f:('a -> 'b option) -> 'b option
val to_list : ('b, 'a) Core__Hash_queue.t -> 'a list
val to_array : ('b, 'a) Core__Hash_queue.t -> 'a array
val min_elt :
('b, 'a) Core__Hash_queue.t ->
compare:('a -> 'a -> int) ->
'a option
val max_elt :
('b, 'a) Core__Hash_queue.t ->
compare:('a -> 'a -> int) ->
'a option
val invariant : ('key, 'data) Core__Hash_queue.t -> Core__.Import.unit
val create :
?growth_allowed:Core__.Import.bool ->
?size:Core__.Import.int ->
Core__.Import.unit ->
(key, 'data) Core__Hash_queue.t
val clear : ('key, 'data) Core__Hash_queue.t -> Core__.Import.unit
val copy : ('key, 'data) Core__Hash_queue.t -> ('key, 'data) Core__Hash_queue.t
val mem : ('key, 'data) Core__Hash_queue.t -> 'key -> Core__.Import.bool
val lookup :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data Core__.Import.option
val lookup_exn : ('key, 'data) Core__Hash_queue.t -> 'key -> 'data
val enqueue :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'key ->
'data ->
[ `Key_already_present | `Ok ]
val enqueue_exn :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'key ->
'data ->
Core__.Import.unit
val enqueue_back :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
[ `Key_already_present | `Ok ]
val enqueue_back_exn :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
Core__.Import.unit
val enqueue_front :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
[ `Key_already_present | `Ok ]
val enqueue_front_exn :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
Core__.Import.unit
val lookup_and_move_to_back :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data Core__.Import.option
val lookup_and_move_to_back_exn :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data
val lookup_and_move_to_front :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data Core__.Import.option
val lookup_and_move_to_front_exn :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data
val last : ('key, 'data) Core__Hash_queue.t -> 'data Core__.Import.option
val last_with_key :
('key, 'data) Core__Hash_queue.t ->
('key * 'data) Core__.Import.option
val first : ('key, 'data) Core__Hash_queue.t -> 'data Core__.Import.option
val first_with_key :
('key, 'data) Core__Hash_queue.t ->
('key * 'data) Core__.Import.option
val keys : ('key, 'data) Core__Hash_queue.t -> 'key Core__.Import.list
val to_alist :
('key, 'data) Core__Hash_queue.t ->
('key * 'data) Core__.Import.list
val dequeue :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'data Core__.Import.option
val dequeue_exn :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'data
val dequeue_back :
('key, 'data) Core__Hash_queue.t ->
'data Core__.Import.option
val dequeue_back_exn : ('key, 'data) Core__Hash_queue.t -> 'data
val dequeue_front :
('key, 'data) Core__Hash_queue.t ->
'data Core__.Import.option
val dequeue_front_exn : ('key, 'data) Core__Hash_queue.t -> 'data
val dequeue_with_key :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
('key * 'data) Core__.Import.option
val dequeue_with_key_exn :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'key * 'data
val dequeue_back_with_key :
('key, 'data) Core__Hash_queue.t ->
('key * 'data) Core__.Import.option
val dequeue_back_with_key_exn :
('key, 'data) Core__Hash_queue.t ->
'key * 'data
val dequeue_front_with_key :
('key, 'data) Core__Hash_queue.t ->
('key * 'data) Core__.Import.option
val dequeue_front_with_key_exn :
('key, 'data) Core__Hash_queue.t ->
'key * 'data
val dequeue_all :
('key, 'data) Core__Hash_queue.t ->
f:('data -> Core__.Import.unit) ->
Core__.Import.unit
val remove : ('key, 'data) Core__Hash_queue.t -> 'key -> [ `No_such_key | `Ok ]
val remove_exn : ('key, 'data) Core__Hash_queue.t -> 'key -> Core__.Import.unit
val lookup_and_remove :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data Core__.Import.option
val replace :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
[ `No_such_key | `Ok ]
val replace_or_enqueue :
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
'key ->
'data ->
Core__.Import.unit
val replace_or_enqueue_front :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
Core__.Import.unit
val replace_or_enqueue_back :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
Core__.Import.unit
val replace_exn :
('key, 'data) Core__Hash_queue.t ->
'key ->
'data ->
Core__.Import.unit
val drop :
?n:Core__.Import.int ->
('key, 'data) Core__Hash_queue.t ->
[ `back | `front ] ->
Core__.Import.unit
val drop_front :
?n:Core__.Import.int ->
('key, 'data) Core__Hash_queue.t ->
Core__.Import.unit
val drop_back :
?n:Core__.Import.int ->
('key, 'data) Core__Hash_queue.t ->
Core__.Import.unit
val iteri :
('key, 'data) Core__Hash_queue.t ->
f:(key:'key -> data:'data -> Core__.Import.unit) ->
Core__.Import.unit
val foldi :
('key, 'data) Core__Hash_queue.t ->
init:'acc ->
f:('acc -> key:'key -> data:'data -> 'acc) ->
'acc
type 'data t = (key, 'data) Core__Hash_queue.t
val sexp_of_t : ('data -> Sexplib0.Sexp.t) -> 'data t -> Sexplib0.Sexp.t