Up – Package index » hack_parallel » Library hack_parallel.utils » UtilsModule Utils * 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 "hack" 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 val log : (string -> unit) ref val spf : ('a , unit, string) format -> 'a val print_endlinef : ('a , unit, string, unit) format4 -> 'a val prerr_endlinef : ('a , unit, string, unit) format4 -> 'a val opt : ('a -> 'b -> 'a * 'c ) -> 'a -> 'b option -> 'a * 'c optionval opt_fold : ('a -> 'b -> 'a ) -> 'a -> 'b option -> 'a val singleton_if : bool -> 'a -> 'a listval wfold_left2 : ('a -> 'b -> 'c -> 'a ) -> 'a -> 'b list -> 'c list -> 'a val sl : string list -> stringval maybe : ('a -> 'b -> unit) -> 'a -> 'b option -> unitval unsafe_opt_note : string -> 'a option -> 'a val unsafe_opt : 'a option -> 'a val list_last : ('a -> 'b ) -> ('a -> unit) -> 'a list -> unitval is_prefix_dir : string -> string -> boolval iter_n_acc : int -> ('a -> 'a * 'b ) -> 'a -> 'a * 'b val strip_ns : string -> stringval strip_all_ns : string -> stringval iter2_shortest : ('a -> 'b -> 'c ) -> 'a list -> 'b list -> unitval fold_fun_list : 'a -> ('a -> 'a ) list -> 'a val compose : ('a -> 'b ) -> ('c -> 'a ) -> 'c -> 'b val try_finally : f :(unit -> 'a ) -> finally :(unit -> unit) -> 'a val with_context :
enter :(unit -> 'a ) ->
exit :(unit -> 'b ) ->
do_ :(unit -> 'c ) ->
'c val assert_false_log_backtrace : string option -> 'a val infimum : 'a array -> 'b -> ('a -> 'b -> int) -> int option