Up – Package index » hack_parallel » Library hack_parallel.collections » SMapModule SMap * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *
hack_parallel README Library hack_parallel Library hack_parallel.collections Library hack_parallel.disk Library hack_parallel.hack_core Library hack_parallel.heap Library hack_parallel.hh_json Library hack_parallel.injection Library hack_parallel.interface Library hack_parallel.memory Library hack_parallel.procs Library hack_parallel.scheduler Library hack_parallel.socket Library hack_parallel.stubs Library hack_parallel.utils Sources include sig ... end val is_empty : 'a t -> boolval mem : key -> 'a t -> boolval update : key -> ('a option -> 'a option ) -> 'a t -> 'a t val singleton : key -> 'a -> 'a t val remove : key -> 'a t -> 'a t val merge :
(key -> 'a option -> 'b option -> 'c option ) ->
'a t ->
'b t ->
'c t val iter : (key -> 'a -> unit) -> 'a t -> unitval fold : (key -> 'a -> 'b -> 'b ) -> 'a t -> 'b -> 'b val for_all : (key -> 'a -> bool) -> 'a t -> boolval exists : (key -> 'a -> bool) -> 'a t -> boolval filter : (key -> 'a -> bool) -> 'a t -> 'a t val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t val cardinal : 'a t -> intval bindings : 'a t -> (key * 'a ) listval min_binding : 'a t -> key * 'a val min_binding_opt : 'a t -> (key * 'a ) optionval max_binding : 'a t -> key * 'a val max_binding_opt : 'a t -> (key * 'a ) optionval choose_opt : 'a t -> (key * 'a ) optionval split : key -> 'a t -> 'a t * 'a option * 'a t val find : key -> 'a t -> 'a val find_opt : key -> 'a t -> 'a optionval find_first : (key -> bool) -> 'a t -> key * 'a val find_first_opt : (key -> bool) -> 'a t -> (key * 'a ) optionval find_last : (key -> bool) -> 'a t -> key * 'a val find_last_opt : (key -> bool) -> 'a t -> (key * 'a ) optionval map : ('a -> 'b ) -> 'a t -> 'b t val mapi : (key -> 'a -> 'b ) -> 'a t -> 'b t val add : ?combine :('a -> 'a -> 'a ) -> key -> 'a -> 'a t -> 'a t val get : key -> 'a t -> 'a optionval find_unsafe : key -> 'a t -> 'a val union : ?combine :(key -> 'a -> 'a -> 'a option ) -> 'a t -> 'a t -> 'a t val compare : 'a t -> 'a t -> intval equal : 'a t -> 'a t -> boolval keys : 'a t -> key listval values : 'a t -> 'a listval elements : 'a t -> (key * 'a ) listval map_env : ('c -> 'a -> 'c * 'b ) -> 'c -> 'a t -> 'c * 'b t val choose : 'a t -> (key * 'a ) optionval from_keys : key list -> (key -> 'a ) -> 'a t