Index of values


( * ) [Int_intf.S]
( * ) [Float_intf.S]
(!) [Ref]
(!=) [Common]
(%) [Core_int.Infix]
mod and div operators that have the right behavior on negative numbers, that is, x % y always returns a positive int between 0 and y-1.
(+) [Int_intf.S]
(+) [Float_intf.S]
(+) [Bucket.Contents]
(+) [Algebraic_group.S]
(-) [Int_intf.S]
(-) [Float_intf.S]
(-) [Bucket.Contents]
(-) [Algebraic_group.S]
(/%) [Core_int.Infix]
(/) [Span]
(/) [Int_intf.S]
(/) [Float_intf.S]
(//) [Span]
(//) [Core_int.Infix]
float division of integers
(:=) [Ref]
(<) [Utest.Debug_compare]
(<) [Comparable.Infix]
(<) [Comparable.Make_common.Infix]
(<.) [Robustly_comparable.S]
(<.) [Float_robust_compare.S]
(<.) [Float_robust_compare.Make]
(</>) [Core_string.Infix]
(<=) [Utest.Debug_compare]
(<=) [Comparable.Infix]
(<=) [Comparable.Make_common.Infix]
(<=.) [Robustly_comparable.S]
(<=.) [Float_robust_compare.S]
(<=.) [Float_robust_compare.Make]
(<>) [Utest.Debug_compare]
(<>) [Comparable.Infix]
(<>) [Comparable.Make_common.Infix]
(<>.) [Robustly_comparable.S]
(<>.) [Float_robust_compare.S]
(<>.) [Float_robust_compare.Make]
(<|>) [Core_array.Infix]
(=) [Utest.Debug_compare]
(=) [Comparable.Infix]
(=) [Comparable.Make_common.Infix]
(=.) [Robustly_comparable.S]
(=.) [Float_robust_compare.S]
(=.) [Float_robust_compare.Make]
(==) [Common]
(==>) [Common]
(>) [Utest.Debug_compare]
(>) [Comparable.Infix]
(>) [Comparable.Make_common.Infix]
(>.) [Robustly_comparable.S]
(>.) [Float_robust_compare.S]
(>.) [Float_robust_compare.Make]
(>=) [Utest.Debug_compare]
(>=) [Comparable.Infix]
(>=) [Comparable.Make_common.Infix]
(>=.) [Robustly_comparable.S]
(>=.) [Float_robust_compare.S]
(>=.) [Float_robust_compare.Make]
(>>=) [Monad.Infix2]
(>>=) [Monad.Infix]
t >>= f returns a computation that sequences the computations represented by two monad elements.
(>>|) [Monad.Infix2]
(>>|) [Monad.Infix]
t >>| f is t >>= (fun a -> return (f a)).
(@) [Core_list.Infix]
(^/) [Common]
same as Filename.concat
(|!) [Fn]
A 'pipe' operator.
(|!) [Common]
Functions from function.ml

A
abbreviation [Zone]
abbreviation zone t returns t abbreviation name such as EDT, EST, JST of given zone at the time t.
abort [Core_unix]
abrt [Signal]
Abnormal termination
abs [Span]
absolute value
abs [Int_intf.S]
abs [Float_intf.S]
abs_diff [Time_internal.T]
abs_diff [Time]
abs_diff t1 t2 returns the absolute span of time t1 minus time t2.
accept [Core_unix]
Accept connections on the given socket.
access [Core_unix]
Check that the process has the given permissions over the named file.
add [Time_internal.T]
add [Time]
add t s adds the span s to time t and returns the resulting time.
add [Timer]
add timer handler ?randomize ?interval span
add [Span]
Basic operations on spans
add [Ofday]
add t s shifts the time of day t by the span s.
add [Int_set]
add t i add i to the set
add [Hash_set]
add [Float_intf.S]
add [Core_unix.Resource_usage]
add ru1 ru2 adds two rusage structures (e.g.
add [Core_set_intf.S1]
add [Core_set_intf.Gen.S]
add [Core_map_intf.S2]
add [Core_map_intf.Gen.S]
add [Core_list.Assoc]
add [Core_set_intf.S]
add [Core_map_intf.S]
add [Bag]
add t v adds v to the bag t, returning an element that can later be removed from the bag.
add [Avltree]
add_abs [Timer]
add_abs timer handler ?randomize ?interval time same as Timer.add, but takes an absolute time time for scheduling the event rather than a span.
add_buffer [Bigbuffer]
add_buffer b1 b2 appends the current contents of buffer b2 at the end of buffer b1.
add_business_days [Date]
add_business_days t ~is_holiday n returns a business day even when n=0.
add_channel [Bigbuffer]
add_channel b ic n reads exactly n character from the input channel ic and stores them at the end of buffer b.
add_char [Bigbuffer]
add_char b c appends the character c at the end of the buffer b.
add_days [Date]
add_months [Date]
add_months t n returns date with max days for the month if the date would be invalid.
add_multi [Core_map_intf.S2]
add_multi [Core_map_intf.Gen.S]
if key is not present then add a singleton list, otherwise, cons data on the head of the existing list.
add_multi [Core_hashtbl_intf.Access_sig.S]
add_multi [Core_map_intf.S]
add_range [Int_set]
add_range t i j add all the numbers between i and j (inclusive) to the set.
add_string [Bigbuffer]
add_string b s appends the string s at the end of the buffer b.
add_substitute [Bigbuffer]
add_substitute b f s appends the string pattern s at the end of the buffer b with substitution.
add_substring [Bigbuffer]
add_substring b s ofs len takes len characters from offset ofs in string s and appends them at the end of the buffer b.
add_weekdays [Date]
add_weekdays t 0 returns the next weekday if t is a weekend and t otherwise
alarm [Core_unix]
Schedule a SIGALRM signal after the given number of seconds.
align [Core_arg]
all [Utest.Only_in_test]
all [Pretty_printer]
all [Month]
allocated_bytes [Core_gc]
Return the total number of bytes allocated since the program was started.
alrm [Signal]
Timeout
always [Quickcheck]
generator that always returns given value
am_holding_mutex [Mutex0]
am_holding_mutex [Core_mutex]
append [Core_list]
E.g.
append [Core_array]
Array.append v1 v2 returns a fresh array containing the concatenation of the arrays v1 and v2.
apply [Result]
apply [Option]
apply x f run optional function on argument and return an option
apr [Month]
are_disjoint [Interval_intf.Gen.S]
Returns true iff a given set of intervals are disjoint
are_disjoint_as_open_intervals [Interval_intf.Gen.S]
Returns true iff a given set of intervals would be disjoint if considered as open intervals.
argv [Core_sys]
The command line arguments given to the process.
array_of_sexp [Std_internal]
ascending [Utest.Debug_compare]
ascending [Comparable.S_common]
ascending [Comparable.Inherit]
ascending [Comparable.Make_common]
ascending [Comparable.Poly]
ascending [Common]
A comparator that returns results in ascending order.
aug [Month]

B
back_index [Dequeue]
backtrace [Exn]
Printexc.get_backtrace
backtrace_status [Core_printexc]
base [Substring_intf.S]
base [Make_substring.F]
basename [Core_filename]
Respects the posix semantic.
big_contents [Bigbuffer]
Return a copy of the current contents of the buffer as a bigstring.
bigstring_bigstring [Make_substring.Blit]
bigstring_kind [Core_unix.IOVec]
bigstring_string [Make_substring.Blit]
bin_decimal [Common]
bin_immutable [Common]
bin_inet_addr [Core_unix]
bin_poly_t [Interval_intf.S.Set]
bin_poly_t [Interval_intf.S]
bin_read_decimal [Common]
bin_read_decimal_ [Common]
bin_read_decimal__ [Common]
bin_read_immutable [Common]
bin_read_immutable_ [Common]
bin_read_immutable__ [Common]
bin_read_inet_addr [Core_unix]
bin_read_inet_addr_ [Core_unix]
bin_read_inet_addr__ [Core_unix]
bin_read_only [Common]
bin_read_poly_t [Interval_intf.S.Set]
bin_read_poly_t [Interval_intf.S]
bin_read_poly_t_ [Interval_intf.S.Set]
bin_read_poly_t_ [Interval_intf.S]
bin_read_poly_t__ [Interval_intf.S.Set]
bin_read_poly_t__ [Interval_intf.S]
bin_read_read_only [Common]
bin_read_read_only_ [Common]
bin_read_read_only__ [Common]
bin_read_read_write [Common]
bin_read_read_write_ [Common]
bin_read_read_write__ [Common]
bin_read_sexp_array [Core_sexp.Sexp_array]
bin_read_sexp_array_ [Core_sexp.Sexp_array]
bin_read_sexp_array__ [Core_sexp.Sexp_array]
bin_read_sexp_list [Core_sexp.Sexp_list]
bin_read_sexp_list_ [Core_sexp.Sexp_list]
bin_read_sexp_list__ [Core_sexp.Sexp_list]
bin_read_sexp_opaque [Core_sexp.Sexp_opaque]
bin_read_sexp_opaque_ [Core_sexp.Sexp_opaque]
bin_read_sexp_opaque__ [Core_sexp.Sexp_opaque]
bin_read_sexp_option [Core_sexp.Sexp_option]
bin_read_sexp_option_ [Core_sexp.Sexp_option]
bin_read_sexp_option__ [Core_sexp.Sexp_option]
bin_read_sockaddr [Core_unix]
bin_read_sockaddr_ [Core_unix]
bin_read_sockaddr__ [Core_unix]
bin_read_socket_domain [Core_unix]
bin_read_socket_domain_ [Core_unix]
bin_read_socket_domain__ [Core_unix]
bin_read_socket_type [Core_unix]
bin_read_socket_type_ [Core_unix]
bin_read_socket_type__ [Core_unix]
bin_read_sysinfo [Linux_ext]
bin_read_sysinfo_ [Linux_ext]
bin_read_sysinfo__ [Linux_ext]
bin_read_t [Zone]
bin_read_t [Interval_intf.S1.Set]
bin_read_t [Interval_intf.S1]
bin_read_t [Interval_intf.S.Set]
bin_read_t [Interval_intf.S]
bin_read_t [Fqueue]
bin_read_t [Bucket.Make]
bin_read_t_ [Zone]
bin_read_t_ [Interval_intf.S1.Set]
bin_read_t_ [Interval_intf.S1]
bin_read_t_ [Interval_intf.S.Set]
bin_read_t_ [Interval_intf.S]
bin_read_t_ [Fqueue]
bin_read_t_ [Bucket.Make]
bin_read_t__ [Zone]
bin_read_t__ [Interval_intf.S1.Set]
bin_read_t__ [Interval_intf.S1]
bin_read_t__ [Interval_intf.S.Set]
bin_read_t__ [Interval_intf.S]
bin_read_t__ [Fqueue]
bin_read_t__ [Bucket.Make]
bin_read_tcp_bool_option [Linux_ext]
bin_read_tcp_bool_option_ [Linux_ext]
bin_read_tcp_bool_option__ [Linux_ext]
bin_read_write [Common]
bin_read_write_only [Common]
bin_read_write_only_ [Common]
bin_read_write_only__ [Common]
bin_reader_decimal [Common]
bin_reader_immutable [Common]
bin_reader_inet_addr [Core_unix]
bin_reader_poly_t [Interval_intf.S.Set]
bin_reader_poly_t [Interval_intf.S]
bin_reader_read_only [Common]
bin_reader_read_write [Common]
bin_reader_sexp_array [Core_sexp.Sexp_array]
bin_reader_sexp_list [Core_sexp.Sexp_list]
bin_reader_sexp_opaque [Core_sexp.Sexp_opaque]
bin_reader_sexp_option [Core_sexp.Sexp_option]
bin_reader_sockaddr [Core_unix]
bin_reader_socket_domain [Core_unix]
bin_reader_socket_type [Core_unix]
bin_reader_sysinfo [Linux_ext]
bin_reader_t [Zone]
bin_reader_t [Interval_intf.S1.Set]
bin_reader_t [Interval_intf.S1]
bin_reader_t [Interval_intf.S.Set]
bin_reader_t [Interval_intf.S]
bin_reader_t [Fqueue]
bin_reader_t [Bucket.Make]
bin_reader_tcp_bool_option [Linux_ext]
bin_reader_write_only [Common]
bin_sexp_array [Core_sexp.Sexp_array]
bin_sexp_list [Core_sexp.Sexp_list]
bin_sexp_opaque [Core_sexp.Sexp_opaque]
bin_sexp_option [Core_sexp.Sexp_option]
bin_size_decimal [Common]
bin_size_immutable [Common]
bin_size_inet_addr [Core_unix]
bin_size_poly_t [Interval_intf.S.Set]
bin_size_poly_t [Interval_intf.S]
bin_size_read_only [Common]
bin_size_read_write [Common]
bin_size_sexp_array [Core_sexp.Sexp_array]
bin_size_sexp_list [Core_sexp.Sexp_list]
bin_size_sexp_opaque [Core_sexp.Sexp_opaque]
bin_size_sexp_option [Core_sexp.Sexp_option]
bin_size_sockaddr [Core_unix]
bin_size_socket_domain [Core_unix]
bin_size_socket_type [Core_unix]
bin_size_sysinfo [Linux_ext]
bin_size_t [Zone]
bin_size_t [Interval_intf.S1.Set]
bin_size_t [Interval_intf.S1]
bin_size_t [Interval_intf.S.Set]
bin_size_t [Interval_intf.S]
bin_size_t [Fqueue]
bin_size_t [Bucket.Make]
bin_size_tcp_bool_option [Linux_ext]
bin_size_write_only [Common]
bin_sockaddr [Core_unix]
bin_socket_domain [Core_unix]
bin_socket_type [Core_unix]
bin_sysinfo [Linux_ext]
bin_t [Zone]
bin_t [Interval_intf.S1.Set]
bin_t [Interval_intf.S1]
bin_t [Interval_intf.S.Set]
bin_t [Interval_intf.S]
bin_t [Fqueue]
bin_t [Bucket.Make]
bin_tcp_bool_option [Linux_ext]
bin_write_decimal [Common]
bin_write_decimal_ [Common]
bin_write_immutable [Common]
bin_write_immutable_ [Common]
bin_write_inet_addr [Core_unix]
bin_write_inet_addr_ [Core_unix]
bin_write_only [Common]
bin_write_poly_t [Interval_intf.S.Set]
bin_write_poly_t [Interval_intf.S]
bin_write_poly_t_ [Interval_intf.S.Set]
bin_write_poly_t_ [Interval_intf.S]
bin_write_read_only [Common]
bin_write_read_only_ [Common]
bin_write_read_write [Common]
bin_write_read_write_ [Common]
bin_write_sexp_array [Core_sexp.Sexp_array]
bin_write_sexp_array_ [Core_sexp.Sexp_array]
bin_write_sexp_list [Core_sexp.Sexp_list]
bin_write_sexp_list_ [Core_sexp.Sexp_list]
bin_write_sexp_opaque [Core_sexp.Sexp_opaque]
bin_write_sexp_opaque_ [Core_sexp.Sexp_opaque]
bin_write_sexp_option [Core_sexp.Sexp_option]
bin_write_sexp_option_ [Core_sexp.Sexp_option]
bin_write_sockaddr [Core_unix]
bin_write_sockaddr_ [Core_unix]
bin_write_socket_domain [Core_unix]
bin_write_socket_domain_ [Core_unix]
bin_write_socket_type [Core_unix]
bin_write_socket_type_ [Core_unix]
bin_write_sysinfo [Linux_ext]
bin_write_sysinfo_ [Linux_ext]
bin_write_t [Zone]
bin_write_t [Interval_intf.S1.Set]
bin_write_t [Interval_intf.S1]
bin_write_t [Interval_intf.S.Set]
bin_write_t [Interval_intf.S]
bin_write_t [Fqueue]
bin_write_t [Bucket.Make]
bin_write_t_ [Zone]
bin_write_t_ [Interval_intf.S1.Set]
bin_write_t_ [Interval_intf.S1]
bin_write_t_ [Interval_intf.S.Set]
bin_write_t_ [Interval_intf.S]
bin_write_t_ [Fqueue]
bin_write_t_ [Bucket.Make]
bin_write_tcp_bool_option [Linux_ext]
bin_write_tcp_bool_option_ [Linux_ext]
bin_write_write_only [Common]
bin_write_write_only_ [Common]
bin_writer_decimal [Common]
bin_writer_immutable [Common]
bin_writer_inet_addr [Core_unix]
bin_writer_poly_t [Interval_intf.S.Set]
bin_writer_poly_t [Interval_intf.S]
bin_writer_read_only [Common]
bin_writer_read_write [Common]
bin_writer_sexp_array [Core_sexp.Sexp_array]
bin_writer_sexp_list [Core_sexp.Sexp_list]
bin_writer_sexp_opaque [Core_sexp.Sexp_opaque]
bin_writer_sexp_option [Core_sexp.Sexp_option]
bin_writer_sockaddr [Core_unix]
bin_writer_socket_domain [Core_unix]
bin_writer_socket_type [Core_unix]
bin_writer_sysinfo [Linux_ext]
bin_writer_t [Zone]
bin_writer_t [Interval_intf.S1.Set]
bin_writer_t [Interval_intf.S1]
bin_writer_t [Interval_intf.S.Set]
bin_writer_t [Interval_intf.S]
bin_writer_t [Fqueue]
bin_writer_t [Bucket.Make]
bin_writer_tcp_bool_option [Linux_ext]
bin_writer_write_only [Common]
bind [Monad.S2]
bind [Monad.Basic2]
bind [Monad.Basic]
bind [Monad.Make2]
bind [Monad.Make]
bind [Monad.S]
bind t f = t >>= f
bind [Core_unix]
Bind a socket to an address.
bit_and [Int_intf.S]
bit_not [Int_intf.S]
bit_or [Int_intf.S]
bit_xor [Int_intf.S]
bits_of_float [Core_int64]
bits_of_float [Core_int32]
blit [Make_substring.Base]
blit [Core_string]
blit [Core_array]
Array.blit v1 o1 v2 o2 len copies len elements from array v1, starting at element number o1, to array v2, starting at element number o2.
blit [Bigstring]
blit ~src ~src_pos ~dst ~dst_pos ~len blits len characters from bigstring src starting at position src_pos to bigstring dst at position dst_pos.
blit [Bigbuffer]
blit ~src ~src_pos ~dst ~dst_pos ~len copies len characters from the current contents of the buffer src, starting at offset src_pos to string dst, starting at character dst_pos.
blit_bigstring_string [Bigstring]
blit_bigstring_string ~src ~src_pos ~dst ~dst_pos ~len blits len characters from bigstring src starting at position src_pos to string dst at position dst_pos.
blit_from_bigstring [Substring_intf.S]
blit_from_bigstring [Make_substring.Base]
blit_from_bigstring [Make_substring.F]
blit_from_string [Substring_intf.S]
blit_from_string [Make_substring.Base]
blit_from_string [Make_substring.F]
blit_string_bigstring [Bigstring]
blit_string_bigstring ~src ~src_pos ~dst ~dst_pos ~len blits len characters from string src starting at position src_pos to bigstring dst at position dst_pos.
blit_string_of_int_2_digits [Time_internal.Helpers]
blit_string_of_int_3_digits [Time_internal.Helpers]
blit_string_of_int_4_digits [Time_internal.Helpers]
blit_to_bigstring [Substring_intf.S]
blit_to_bigstring [Make_substring.Base]
blit_to_bigstring [Make_substring.F]
blit_to_string [Substring_intf.S]
blit_to_string [Make_substring.Base]
blit_to_string [Make_substring.F]
block_forever [Core_thread]
block_forever () will block the calling thread forever.
blocking_create [Lock_file.Nfs]
lock_blocking ?message path like lock, but sleeps for 1 second between lock attempts and does not return until it succeeds
blocking_create [Lock_file]
blocking_create t tries to create the lock.
bool_of_sexp [Std_internal]
bot [Fqueue]
like bot_exn, but returns result optionally, without exception
bot_exn [Fqueue]
returns the bottom (most-recently enqueued element).
both [Option]
bound [Interval_intf.Gen.S]
bound i x bounds the value x to the interval i.
bounds [Interval_intf.Gen.S]
bounds_exn [Interval_intf.Gen.S]
bprintf [Core_printf]
bprintf [Bigbuffer.Printf]
bprintf [Bigbuffer.Format]
broadcast [Core_condition]
business_dates_between [Date]
bytes [Byte_units]

C
call [Result]
call [Option]
call x f run optional function on argument
capitalize [Core_string]
cardinal [Core_set_intf.S1]
cardinal [Core_set_intf.Gen.S]
cardinal [Core_map_intf.S2]
cardinal [Core_map_intf.Gen.S]
cardinal map
cardinal [Core_set_intf.S]
cardinal [Core_map_intf.S]
cartesian_product [Core_list]
cartesian_product [Core_array]
catch [Core_printexc]
catch_and_print_backtrace [Exn]
catch_break [Core_sys]
catch_break governs whether interactive interrupt (ctrl-C) terminates the program or raises the Break exception.
ceil [Float_intf.S]
cg [Quickcheck]
char generator
change [Core_map_intf.S2]
change [Core_map_intf.Gen.S]
change [Core_hashtbl_intf.Access_sig.S]
change t key f updates the given table by changing the value stored under key according to f, just like Map.change (see that for example).
change [Core_map_intf.S]
char_of_sexp [Std_internal]
chdir [Core_unix]
Change the process working directory.
chdir [Core_sys]
Change the current working directory of the process.
check [Error_check.ReportAllFails]
check [Error_check.Step]
check [Error_check.Timer]
check [Error_check.ToggleN]
check [Error_check.Toggle]
check_args [Bigstring]
check_args ~loc ~pos ~len bstr checks the position and length arguments pos and len for bigstrings bstr.
check_heap_property [Heap]
check_heap_property h asserts that h has the heap property: that all nodes are less than their children by h's comparison function.
check_suffix [Core_filename]
check_suffix name suff returns true if the filename name ends with the suffix suff.
chld [Signal]
Child process terminated
chmod [Core_unix]
Change the permissions of the named file.
choose [Core_set_intf.S1]
choose [Core_set_intf.Gen.S]
choose [Core_set_intf.S]
choose_exn [Core_set_intf.S1]
choose_exn [Core_set_intf.Gen.S]
choose_exn [Core_set_intf.S]
chop_extension [Core_filename]
Return the given file name without its extension.
chop_prefix [Core_string]
chop_prefix_exn [Core_string]
chop_prefix s ~pref returns a copy s without the leading pref
chop_suffix [Core_string]
chop_suffix [Core_filename]
chop_suffix name suff removes the suffix suff from the filename name.
chop_suffix_exn [Core_string]
chop_suffix s ~suf returns a copy s without the trailing suff
chown [Core_unix]
Change the owner uid and owner gid of the named file.
chroot [Core_unix]
Change the process root directory.
classify [Float_intf.S]
clear [Squeue]
clears the queue
clear [Hash_set]
clear [Hash_queue.S]
clear the queue
clear [Hash_queue.Make]
clear [Doubly_linked]
clear t removes all elements from the list in constant time.
clear [Core_stack]
clear t discards all elements from t.
clear [Core_queue]
clear t discards all elements from t.
clear [Core_hashtbl_intf.Access_sig.S]
clear [Bigbuffer]
Empty the buffer.
clear [Bag]
clear t removes all elements from the bag.
clear_close_on_exec [Core_unix]
Clear the ``close-on-exec'' flag on the given descriptor.
clear_nonblock [Core_unix]
Clear the ``non-blocking'' flag on the given descriptor.
close [Out_channel]
close [Linebuf]
Closes the line buffer (and the underlying file).
close [In_channel]
close [Core_unix]
Close a file descriptor.
close_in [Common]
we have our own version of these two, the INRIA version doesn't release the runtime lock.
close_noerr [Out_channel]
close_noerr [In_channel]
close_out [Common]
close_process [Core_unix]
Close channels opened by UnixLabels.open_process, wait for the associated command to terminate, and return its termination status.
close_process_full [Core_unix]
Close channels opened by UnixLabels.open_process_full, wait for the associated command to terminate, and return its termination status.
close_process_in [Core_unix]
Close channels opened by UnixLabels.open_process_in, wait for the associated command to terminate, and return its termination status.
close_process_out [Core_unix]
Close channels opened by UnixLabels.open_process_out, wait for the associated command to terminate, and return its termination status.
closedir [Core_unix]
Close a directory descriptor.
combine [Result]
combine [Core_array]
combine ar combines two arrays to an array of pairs.
combine_alist [Core_map_intf.S2]
combine_alist [Core_map_intf.Gen.S]
combines an association list into a map, folding together the bound values (for experts only)
combine_alist [Core_map_intf.S]
combine_exn [Core_list]
Transform a pair of lists into a list of pairs: combine [a1; ...; an] [b1; ...; bn] is [(a1,b1); ...; (an,bn)].
command [Core_sys]
Execute the given shell command and return its exit code.
command_exn [Core_sys]
compact [Core_gc]
Perform a full major collection and compact the heap.
compare [Utest.Debug_compare]
compare [Tuple.Hashable_sexpable]
compare [Tuple.T3]
compare [Tuple.T2]
compare [Option]
compare [Core_set_intf.S1]
compare [Core_set_intf.Gen.S]
compare [Core_set_intf.Elt]
compare [Core_map_intf.S2]
compare [Core_map_intf.Gen.S]
Total ordering between maps.
compare [Core_map_intf.Key]
compare [Core_list]
lexicographic
compare [Core_hashtbl_intf.Key]
compare [Comparable.S_common]
compare [Comparable.Inherit]
compare [Comparable.Make_common]
compare [Core_set_intf.S]
compare [Core_map_intf.S]
compare_int [Int_conversions]
compare_value [Interval_intf.Gen.S]
compose [Fn]
compose f g x is f (g x)
concat [Substring_intf.S]
concat [Make_substring.F]
concat [Core_string]
concatanate all strings in the list using separator sep (default sep "")
concat [Core_list]
Concatenate a list of lists.
concat [Core_filename]
concat p1 p2 returns a path equivalent to p1 ^ "/" ^ p2.
concat [Core_array]
Same as Array.append, but concatenates a list of arrays.
concat_array [Core_string]
concat_array sep ar like String.concat, but operates on arrays
concat_bigstring [Substring_intf.S]
concat_bigstring [Make_substring.F]
concat_map [Core_string]
Like map, but allows replacement of a single character with zero or two or more characters.
concat_map [Core_list]
concat_map t ~f is concat (map t ~f), except that there * is no guarantee about the order in which f is applied to the elements of * t.
concat_map [Core_array]
concat_string [Substring_intf.S]
concat_string [Make_substring.F]
cond_pop [Heap]
cond_pop heap cond
cond_pop [Hash_heap.S]
cond_pop [Hash_heap.Make]
cond_pop_heap_el [Heap]
cond_pop_heap_el heap cond
cond_pop_with_key [Hash_heap.S]
cond_pop_with_key [Hash_heap.Make]
connect [Core_unix]
Connect a socket to an address.
cons [Core_list]
const [Fn]
produces a function that just returns its first argument
const [Common]
cont [Signal]
Continue
container [Hash_queue.Make]
container [Container.S1_phantom]
container [Container.S1]
container [Container.S0_phantom]
container [Container.S0]
contains [Interval_intf.GenSet.S]
contains [Interval_intf.Gen.S]
contains [Core_string]
contains_dup [Core_list]
contains_dup True if there are any two elements in the list which are the same.
contains_from [Core_string]
contains_set [Interval_intf.GenSet.S]
contents [Bigbuffer]
Return a copy of the current contents of the buffer.
convert [Time]
convert [Int_conversions]
copy [Heap]
copy heap
copy [Hash_set]
copy [Hash_heap.S]
copy [Hash_heap.Make]
copy [Doubly_linked]
copy t returns a copy of t.
copy [Core_string]
copy [Core_stack]
copy t returns a copy of t.
copy [Core_queue]
copy t returns a copy of t.
copy [Core_hashtbl_intf.Access_sig.S]
copy [Core_array]
Array.copy a returns a copy of a, that is, a fresh array containing the same elements as a.
cores [Linux_ext]
cores ()
count [Core_list]
count f l is the number of elements in l that satisfy the predicate f.
counters [Core_gc]
Return (minor_words, promoted_words, major_words).
crc32 [Crc]
Compute the 32-bit crc
crc32hex [Crc]
String version of the crc, encoded in hex.
create [Weekday]
create [Unique_id_intf.Id]
create [Tuple.T3]
create [Tuple.T2]
create [Timer]
create ?min_size () creates a new timer.
create [Thread_safe_queue]
create [Squeue]
create maxsize returns a synchronized queue bounded to have no more than maxsize elements.
create [Span]
create [Space_safe_tuple.T3]
create [Space_safe_tuple.T2]
create [Set_once]
create [Ref]
create [Piecewise_linear.S]
create [Out_channel]
create [Ofday]
create [Mutex0]
create [Month]
create [Substring_intf.S]
create ?pos ?len base creates a substring of the base sequence of * length len starting at position pos, i.e.
create [Make_substring.Base]
create [Make_substring.F]
create [Lock_file.Nfs]
lock ?message path tries to lock the file at path by creating two new files path.nfs_lock and path.nfs_lock.msg.
create [Lock_file]
create ?message path tries to create a file at path containing the text message, which defaults to the pid of the locking process.
create [Linebuf]
create [Int_set]
create [Interval_intf.GenSet.S]
create [Interval_intf.Gen.S]
create [In_channel]
create [Host_and_port]
create [Heap]
create ?min_size cmp
create [Hash_set.Poly]
create [Hash_set_intf.S_binable]
create [Hash_heap.S]
create [Hash_queue.S]
create () returns an empty queue.
create [Hash_set_intf.S]
create [Hash_set.Make_binable]
create [Hash_heap.Make]
create [Hash_queue.Make]
create [Hash_set.Make]
create [Force_once]
create f creates a new force_once
create [Error_check.ReportAllFails]
create [Error_check.Step]
create [Error_check.Timer]
create [Error_check.ToggleN]
create [Error_check.Toggle]
create [Doubly_linked]
creating doubly-linked lists
create [Dequeue]
create [Date]
create [Core_thread]
Thread.create funct arg creates a new thread of control, in which the function application funct arg is executed concurrently with the other threads of the program.
create [Core_string]
create [Core_stack]
create () returns an empty stack.
create [Core_queue]
create () returns an empty queue.
create [Core_mutex]
create [Core_hashtbl_intf.Create_sig.S]
create [Core_condition]
create [Core_array]
create n x creates an array of length n with the value x populated in each element
create [Container]
create [Byte_units]
create [Bucket.S]
create [Bucket.Make]
create [Bigstring]
create length
create [Bigbuffer]
create n returns a fresh buffer, initially empty.
create [Bag]
create () returns an empty bag.
create [Agnostic_mutex]
create' [Thread_safe_queue]
create_alarm [Core_gc]
create_alarm f will arrange for f to be called at the end of each major GC cycle, starting with the current cycle or the next one.
create_ending_after [Interval.Time]
create_ending_before [Interval.Time]
create_exn [Lock_file.Nfs]
lock_exn ?message path like lock, but throws an exception when it fails to obtain the lock
create_exn [Lock_file]
create_exn ?message path is like create except that it throws an exception on failure instead of returning a boolean value
create_from_intervals [Interval_intf.GenSet.S]
create_mapped [Core_hashtbl_intf.Create_sig.S]
create_process [Core_unix]
create_process ~prog ~args forks a new process that executes the program prog with arguments args.
create_process_env [Core_unix]
create_process_env ~prog ~args ~env as create process, but takes an * additional parameter that extends, or replaces the current environment.
create_with_key [Core_hashtbl_intf.Create_sig.S]
critical_section [Mutex0]
critical_section [Lock_file.Nfs]
critical_section ?message path ~f wrap function f (including exceptions escaping it) by first locking (using Lock_file.Nfs.create_exn) and then unlocking the given lock file.
critical_section [Core_mutex]
critical_section [Common]
critical_section [Agnostic_mutex]
current [Core_arg]
current_dir_name [Core_filename]
The conventional name for the current directory (e.g.
current_string_and_sexp_format [Time]
curry [Tuple.T3]
curry [Tuple.T2]

D
daemonize [Daemon]
daemonize_wait [Daemon]
daemonize_wait ?(cd = "/") ?(umask=0) () makes the executing process a daemon, but delays full detachment from the calling shell/process until the returned "release" closure is called.
data [Core_map_intf.S2]
data [Core_map_intf.Gen.S]
returns list of data in map
data [Core_hashtbl_intf.Access_sig.S]
filter_inplace t ~f removes all the elements from t that don't * satisfy f.
data [Core_map_intf.S]
dates_between [Date]
day [Span]
day [Date]
day_of_week [Date]
deactivate [Timer]
deactivate timer deactives a timer.
debug_printf [Utest]
debug_printf is meant to be used in unit tests.
dec [Month]
decimal_of_sexp [Common]
decr [Int_intf.S]
dedup [Core_list]
dedup (de-duplicate).
default_sys_behavior [Signal]
default_sys_behavior t Query the default system behavior for a signal.
delay [Core_thread]
delay d suspends the execution of the calling thread for d seconds.
delete_alarm [Core_gc]
delete_alarm a will stop the calls to the function associated to a.
deq [Fqueue]
alias for pop
deq_exn [Fqueue]
alias for pop_exn
dequeue [Thread_safe_queue]
dequeue [Hash_queue.S]
dequeue t returns the front element of the queue.
dequeue [Hash_queue.Make]
dequeue [Core_queue]
dequeue t returns None if t is empty, otherwise it removes and returns the front of t
dequeue_all [Hash_queue.S]
dequeue_all t ~f dequeues every element of the queue and applies f to each one.
dequeue_all [Hash_queue.Make]
dequeue_exn [Hash_queue.S]
dequeue_exn [Hash_queue.Make]
dequeue_exn [Core_queue]
dequeue_exn t removes and returns the front of t, raising Empty if t is empty.
dequeue_with_key [Hash_queue.S]
dequeue_with_key t returns the front element of the queue and its key
dequeue_with_key [Hash_queue.Make]
dequeue_with_key_exn [Hash_queue.S]
dequeue_with_key_exn [Hash_queue.Make]
descending [Utest.Debug_compare]
descending [Comparable.S_common]
descending [Comparable.Inherit]
descending [Comparable.Make_common]
descending [Comparable.Poly]
descending [Common]
descr_of_in_channel [Core_unix]
Return the descriptor corresponding to an input channel.
descr_of_out_channel [Core_unix]
Return the descriptor corresponding to an output channel.
diff [Time_internal.T]
diff [Time]
diff t1 t2 returns time t1 minus time t2.
diff [Ofday]
diff t1 t2 returns the difference in time between two ofdays, as if they occurred on the same day
diff [Hash_set]
diff [Date]
diff t1 t2 returns date t1 minus date t2 in days.
diff [Core_set_intf.S1]
diff [Core_set_intf.Gen.S]
diff [Core_set_intf.S]
digest [Zone]
digest t return the MD5 digest of the file the t was created from (if any)
dir_sep [Core_filename]
The directory separator (e.g.
dirfd [Core_unix]
dirname [Core_filename]
See Filename.basename.
discard_exn [Fqueue]
Returns version of queue with top element removed
domain_of_sockaddr [Core_unix]
Return the socket domain adequate for the given socket address.
drop [Core_unix.IOVec]
drop iovec n drops n characters from iovec.
drop [Core_list]
drop_back [Dequeue]
drop_front [Dequeue]
drop_indices_greater_than [Dequeue]
drop_indices_less_than [Dequeue]
drop_prefix [Substring_intf.S]
drop_prefix [Make_substring.F]
drop_prefix [Core_string]
drop_prefix s n drops the longest prefix of s of length less than or equal to n
drop_suffix [Substring_intf.S]
drop_suffix [Make_substring.F]
drop_suffix [Core_string]
drop_suffix s n drops the longest suffix of s of length less than or equal to n
drop_while [Core_list]
drop_while l ~f drops the longest prefix of l for which f is true.
dup [Core_unix]
Return a new file descriptor referencing the same file as the given descriptor.
dup2 [Core_unix]
dup2 fd1 fd2 duplicates fd1 to fd2, closing fd2 if already opened.

E
elements [Core_set_intf.S1]
elements [Core_set_intf.Gen.S]
elements [Core_set_intf.S]
elt_of_sexp [Algebraic_group.S]
empty [Interval_intf.Gen.S]
empty [Fqueue]
The empty queue
empty [Core_unix.IOVec]
empty the empty I/O-vector.
empty [Core_unix.Select_fds]
empty [Core_set_intf.S1]
empty [Core_set_intf.Gen.S]
empty [Core_map_intf.S2]
empty [Core_map_intf.Gen.S]
the empty map
empty [Core_array]
empty () creates an empty array
empty [Core_set_intf.S]
empty [Core_map_intf.S]
empty [Avltree]
end_of_day [Ofday]
endpwent [Core_unix.Passwd]
enq [Fqueue]
alias for push
enqueue [Thread_safe_queue]
enqueue [Hash_queue.S]
enqueue t k v adds the key-value pair (k, v) to the end of the queue, returning `Ok if the pair was added, or `Key_already_present if there is already a (k, v') in the queue.
enqueue [Hash_queue.Make]
enqueue [Core_queue]
enqueue t x adds x to the end of t.
enqueue_exn [Hash_queue.S]
enqueue_exn [Hash_queue.Make]
environment [Core_unix]
Return the process environment, as an array of strings with the format ``variable=value''.
epoch [Time]
eprintf [Core_printf]
epsilon [Span]
epsilon [Float_robust_compare.S]
epsilon [Float_robust_compare.Make]
epsilon [Float_intf.S]
equal [Utest.Debug_compare]
equal [Signal]
equal [Ref]
equal t1 t2 returns true if t1 and t2 are the same ref cell.
equal [Option]
equal [Mutex0]
equal [Hash_set]
equal [Doubly_linked.Elt]
equal [Doubly_linked]
predicates
equal [Core_string]
fast equality function on strings, doesn't use compare_val
equal [Core_set_intf.S1]
equal [Core_set_intf.Gen.S]
equal [Core_mutex]
equal [Core_map_intf.S2]
equal [Core_map_intf.Gen.S]
equal cmp m1 m2 tests whether the maps m1 and m2 are equal, that is, contain equal keys and associate them with equal data.
equal [Core_list]
equal [Core_hashtbl_intf.Access_sig.S]
equal [Core_condition]
equal [Comparable.S_common]
equal [Comparable.Inherit]
equal [Comparable.Make_common]
equal [Core_set_intf.S]
equal [Core_map_intf.S]
equal [Comparable.Poly]
equal [Common]
toplevel binding for polymorphic equality (=).
equal [Bag.Elt]
equal [Agnostic_mutex]
error [Result]
error_message [Core_unix]
Return a string describing the given error code.
error_of_sexp [Core_unix]
Unknown error
escaped [Core_string]
Warning: Only returns a copy if changes are necessary! Special characters are represented by escape sequences, following the lexical conventions of Objective Caml.
escaped [Core_char]
Return a string representing the given character, with special characters escaped following the lexical conventions of Objective Caml.
establish_server [Core_unix]
Establish a server on the given address.
eval [Blang]
executable_name [Core_sys]
The name of the file containing the executable currently running.
execv [Core_unix]
execve [Core_unix]
Same as UnixLabels.execv, except that the third argument provides the environment to the program executed.
execvp [Core_unix]
Same as UnixLabels.execv respectively, except that the program is searched in the path.
execvpe [Core_unix]
Same as UnixLabels.execve respectively, except that the program is searched in the path.
exists [Hash_queue.Make]
exists [Core_set_intf.S1]
exists [Core_set_intf.Gen.S]
exists [Core_map_intf.S2]
exists [Core_map_intf.Gen.S]
exists [Core_hashtbl_intf.Access_sig.S]
exists [Container.S1_phantom_noclass]
exists [Container.S1_noclass]
exists [Container.S0_phantom_noclass]
exists [Container.S0_noclass]
exists [Core_set_intf.S]
exists [Core_map_intf.S]
exists2_exn [Core_list]
Same as List.exists, but for a two-argument predicate.
existsi [Core_hashtbl_intf.Access_sig.S]
exit [Core_thread]
Terminate prematurely the currently executing thread.
exit_immediately [Core_unix]
exit_immediately exit_code immediately calls the exit system call with the given exit code without performing any other actions (unlike Pervasives.exit).
exitf [Core_printf]
exitf [Common]
exn_if_dup [Core_list]
exn_if_dup ?compare ?context t ~to_sexp will run find_a_dup on t, and raise Duplicate_found if a duplicate is found.

F
fail [Result]
failf [Result]
e.g.
failwithf [Sexpable]
failwithf [Core_printf]
Formatting error and exit functions
failwithf [Common]
false_ [Blang]
fchmod [Core_unix]
Change the permissions of an opened file.
fchown [Core_unix]
Change the owner uid and owner gid of an opened file.
fdatasync [Core_unix]
Synchronize the kernel buffers of a given file descriptor with disk, but do not necessarily write file attributes.
feb [Month]
fg [Quickcheck]
float generator (no nan, inf, etc.)
file_descr_of_int [Core_unix]
file_descr_of_int n converts an integer to a file descriptor.
file_descr_realpath [Linux_ext]
file_descr_realpath fd
file_exists [Core_sys]
file_exists ~follow_symlinks path
file_exists_exn [Core_sys]
Same as file_exists but blows up on `Unknown
file_kind_of_sexp [Core_unix]
Socket
file_perm_of_sexp [Core_unix]
fill [Core_string]
fill [Core_array]
Array.fill a ofs len x modifies the array a in place, storing x in elements number ofs to ofs + len - 1.
fill [Bucket.S]
fill [Bucket.Make]
filter [Option]
filter [Hash_set]
filter [Core_set_intf.S1]
filter [Core_set_intf.Gen.S]
filter [Core_map_intf.S2]
filter [Core_map_intf.Gen.S]
filter for map
filter [Core_list]
filter p l returns all the elements of the list l that satisfy the predicate p.
filter [Core_hashtbl_intf.Access_sig.S]
filter [Core_array]
filter ~f array removes the elements for which f returns false.
filter [Core_set_intf.S]
filter [Core_map_intf.S]
filter_inplace [Doubly_linked]
filter_inplace t ~f removes all elements of t that don't satisfy f.
filter_inplace [Core_queue]
filter_inplace t ~f removes all elements of t that don't satisfy f.
filter_inplace [Core_hashtbl_intf.Access_sig.S]
filter_map [Core_set_intf.S1]
filter_map [Core_queue]
filter_map [Core_map_intf.S2]
filter_map [Core_map_intf.Gen.S]
returns new map with bound values filtered by f applied to the bound values
filter_map [Core_list]
filter_map f l is the sublist of l containing only elements for which f returns Some e.
filter_map [Core_hashtbl_intf.Access_sig.S]
returns new map with bound values filtered by f applied to the bound values
filter_map [Core_array]
filter_map ~f array maps f over array and filters None out of the results.
filter_map [Core_map_intf.S]
filter_mapi [Core_map_intf.S2]
filter_mapi [Core_map_intf.Gen.S]
like filter_map, but function takes both key and data as arguments
filter_mapi [Core_list]
filter_mapi is just like filter_map, but it also passes in the index of each element as the first argument to the mapped function.
filter_mapi [Core_hashtbl_intf.Access_sig.S]
like filter_map, but function takes both key and data as arguments
filter_mapi [Core_array]
Same as filter_map but uses Array.mapi.
filter_mapi [Core_map_intf.S]
filter_opt [Core_list]
filter_opt l is the sublist of l containing only elements which are Some e.
filter_opt [Core_array]
filter_opt array returns a new array where None entries are omitted and Some x entries are replaced with x.
filteri [Core_list]
filteri [Core_hashtbl_intf.Access_sig.S]
filteri [Core_array]
Like filter except f also receives the index.
filteri_inplace [Core_hashtbl_intf.Access_sig.S]
finalise [Core_gc]
finalise f v registers f as a finalisation function for v.
finalise_release [Core_gc]
A finalisation function may call finalise_release to tell the GC that it can launch the next finalisation function without waiting for the current one to return.
find [Zone]
find name looks up a t by its name and returns it.
find [Hash_heap.S]
find [Hash_heap.Make]
find [Hash_queue.Make]
find [Core_set_intf.S1]
find [Core_set_intf.Gen.S]
find [Core_map_intf.S2]
find [Core_map_intf.Gen.S]
find [Core_list.Assoc]
find [Core_hashtbl_intf.Access_sig.S]
find t k returns Some (the current binding) of k in t, or None if no such binding exists
find [Container.S1_phantom_noclass]
find [Container.S1_noclass]
find [Container.S0_phantom_noclass]
find [Container.S0_noclass]
find [Core_set_intf.S]
find [Core_map_intf.S]
find [Bigstring]
find ?pos ?len char t returns Some i for the smallest i >= pos such that t.{i} = char, or None if there is no such i.
find [Avltree]
if the specified key exists in the tree, return the corresponding value.
find_a_dup [Core_list]
find_a_dup returns a duplicate from the list (no guarantees about which duplicate you get), or None if there are no dups.
find_all [Core_list]
find_all is another name for List.filter.
find_elt [Doubly_linked]
find_elt t ~f finds the first element in t that satisfies f, by testing each of element of t in turn until f succeeds.
find_elt [Bag]
find_elt t ~f looks at elements in the bag one-by-one until it finds one elt such that f (Elt.value elt), in which case it returns Some elt.
find_exn [Zone]
find_exn [Hash_heap.S]
find_exn [Hash_heap.Make]
find_exn [Core_set_intf.S1]
find_exn [Core_set_intf.Gen.S]
find_exn [Core_map_intf.S2]
find_exn [Core_map_intf.Gen.S]
returns the value bound to the given key, raising Not_found if none such exists
find_exn [Core_list.Assoc]
find_exn [Core_list]
find_exn t ~f returns the first element of t that satisfies f.
find_exn [Core_hashtbl_intf.Access_sig.S]
find_exn t k returns the current binding of k in t, or raises Not_found if no such binding exists.
find_exn [Core_array]
find_exn f t returns the first a in t for which f t.(i) is true.
find_exn [Core_set_intf.S]
find_exn [Core_map_intf.S]
find_heap_el [Heap]
find_heap_el heap el
find_index [Core_set_intf.S1]
find_index [Core_set_intf.Gen.S]
find_index [Core_set_intf.S]
find_map [Core_list]
find_office [Zone]
find_office office a more type-safe interface for pulling timezones related to our offices
find_or_add [Core_hashtbl_intf.Access_sig.S]
find_or_add t k ~default returns the data associated with key k if it is in the table t, otherwise it lets d = default() and adds it to the table.
find_pop [Hash_heap.S]
find_pop [Hash_heap.Make]
find_pop_exn [Hash_heap.S]
find_pop_exn [Hash_heap.Make]
findi [Core_list]
findi [Core_array]
findi_exn [Core_array]
findi_exn f ar returns the first index i of ar for which f ar.(i) is true.
first [Doubly_linked]
first_elt [Doubly_linked]
constant-time extraction of first and last elements.
flatten [Core_list]
Same as concat.
flatten_no_order [Core_list]
Same as flatten but faster and without preserving any ordering (ie for lists that are essentially viewed as multi-sets.
flip [Fn]
reverse the order of arguments for a binary function
float_of_bits [Core_int64]
float_of_bits [Core_int32]
float_of_hh_mm_ss [Time_internal]
float_of_sexp [Std_internal]
flock [Core_unix]
flock fd cmd places or releases a lock on the fd as per the flock C call of the same name.
floor [Float_intf.S]
flush [Out_channel]
fnmatch [Core_unix]
fold [Hash_set]
fold [Hash_queue.Make]
fold [Dequeue]
fold [Core_set_intf.S1]
fold [Core_set_intf.Gen.S]
fold [Core_queue]
fold [Core_map_intf.S2]
fold [Core_map_intf.Gen.S]
folds over keys and data in map
fold [Core_hashtbl_intf.Access_sig.S]
fold [Container.S1_phantom_noclass]
fold [Container.S1_noclass]
fold [Container.S0_phantom_noclass]
fold [Container.S0_noclass]
fold [Core_set_intf.S]
fold [Core_map_intf.S]
fold [Avltree]
fold over the tree
fold2_exn [Core_list]
List.fold2_exn f a [b1; ...; bn] [c1; ...; cn] is f (... (f (f a b1 c1) b2 c2) ...) bn cn.
fold_left [Core_list]
fold_lines [In_channel]
fold_lines ?fix_win_eol t ~init ~f folds over the lines read from t using input_line.
fold_range_inclusive [Core_map_intf.S2]
fold_range_inclusive [Core_map_intf.Gen.S]
fold_range_inclusive t ~min ~max ~init ~f folds f (with initial value ~init) over all keys (and their associated values) that are in the range min, max (inclusive)
fold_range_inclusive [Core_map_intf.S]
fold_right [Core_map_intf.S2]
fold_right [Core_map_intf.Gen.S]
folds over keys and data in map in reverse order
fold_right [Core_list]
List.fold_right f [a1; ...; an] b is f a1 (f a2 (... (f an b) ...)).
fold_right [Core_array]
Array.fold_right f a ~init computes f a.(0) (f a.(1) ( ... (f a.(n-1) init) ...)), where n is the length of the array a.
fold_right [Core_map_intf.S]
fold_until [Core_set_intf.S1]
fold_until [Core_set_intf.Gen.S]
fold_until [Core_set_intf.S]
foldi [Hash_queue.S]
foldi [Hash_queue.Make]
foldi [Dequeue]
foldi [Core_list]
foldi is just like fold, but it also passes in the index of each element as the first argument to the folded function.
for_all [Hash_queue.Make]
for_all [Core_set_intf.S1]
for_all [Core_set_intf.Gen.S]
for_all [Core_map_intf.S2]
for_all [Core_map_intf.Gen.S]
for_all [Container.S1_phantom_noclass]
for_all [Container.S1_noclass]
for_all [Container.S0_phantom_noclass]
for_all [Container.S0_noclass]
for_all [Core_set_intf.S]
for_all [Core_map_intf.S]
for_all2 [Core_array]
for_all2 t1 t2 ~f fails if length t1 <> length t2.
for_all2_exn [Core_list]
Same as List.for_all, but for a two-argument predicate.
forbid_new_string_and_sexp_formats [Time]
If this is called it asserts that use_new_string_and_sexp_formats has not been called, and will cause use_new_string_and_sexp_formats to throw an exception if it is called later
force [Force_once]
force t runs the thunk if it hadn't already been forced, else it raises an exception.
force [Common]
forever [Fn]
forever f runs f () until it throws an exception and returns the exception.
fork [Core_unix]
Fork a new process.
format [Time]
format t fmt formats the given time according to fmt, which follows the formatting rules given in 'man strftime'.
formatter_of_buffer [Bigbuffer.Format]
fpe [Signal]
Arithmetic exception
fprintf [Core_printf]
fractional [Float_intf.S.Parts]
frange [Core_list]
frange is similar to range, but for floats.
frequency [Quickcheck]
Given list of (frequency,value) pairs, returns value with probability proportional to given frequency
frequencyl [Quickcheck]
a gen-returning version of frequency
fri [Weekday]
front_index [Dequeue]
fst3 [Common]
triple handling
fstat [Core_unix.Native_file]
Return the information for the file associated with the given descriptor.
fstat [Core_unix]
Return the information for the file associated with the given descriptor.
fsync [Core_unix]
Synchronize the kernel buffers of a given file descriptor with disk.
ftruncate [Core_unix.Native_file]
ftruncate [Core_unix]
Truncates the file corresponding to the given descriptor to the given size.
full_major [Core_gc]
Do a minor collection, finish the current major collection cycle, and perform a complete new cycle.

G
general [Memo]
Returns memoized version of any function with a single argument.
get [Weekday]
get [Linux_ext.Clock]
get [Set_once]
get [Piecewise_linear.S]
get [Month]
get [Dequeue]
get [Core_unix.Resource_usage]
get [Core_unix.RLimit]
get [Core_string]
get [Core_gc]
Return the current values of the GC parameters in a control record.
get [Core_array]
Array.get a n returns the element number n of array a.
get [Bigstring]
get t pos returns the character at pos
get1 [Tuple.T3]
get1 [Tuple.T2]
get1 [Space_safe_tuple.T3]
get1 [Space_safe_tuple.T2]
get2 [Tuple.T3]
get2 [Tuple.T2]
get2 [Space_safe_tuple.T3]
get2 [Space_safe_tuple.T2]
get3 [Tuple.T3]
get3 [Space_safe_tuple.T3]
get_back [Dequeue]
get_backtrace [Core_printexc]
get_cmp [Heap]
get_cmp heap
get_digit [Core_char]
Return Some i if is_digit c and None otherwise.
get_digit_exn [Core_char]
Return i if is_digit c.
get_event_interval [Timer]
get_event_interval event
get_event_time [Timer]
get_event_time event
get_exn [Set_once]
get_front [Dequeue]
get_inet_addr [Core_unix]
Get inet_addr of a hostname or IP
get_num_open_fds [Core_unix]
get_num_open_fds ()
get_opt_len [Bigstring]
get_opt_len bstr ~pos opt_len
get_pos_len [Ordered_collection_common]
get_pos_len_exn [Ordered_collection_common]
get_pos_len and get_pos_len_exn are intended to be used by functions * that take a sequence (array, string, bigstring, ...) and an optional pos * and len specifying a subrange of the sequence.
get_process_clock [Linux_ext.Clock]
get_process_clock the clock measuring the CPU-time of a process.
get_resolution [Linux_ext.Clock]
get_sockaddr [Core_unix]
Get a sockaddr from a hostname or IP, and a port
get_terminal_size [Core_unix]
get_terminal_size ()
get_thread_clock [Linux_ext.Clock]
get_thread_clock the clock measuring the CPU-time of the current thread.
get_time [Linux_ext.Clock]
get_timer [Timer]
get_timer event
getaddrinfo [Core_unix]
getaddrinfo host service opts returns a list of Unix.addr_info records describing socket parameters and addresses suitable for communicating with the given host and service.
getbyaddr [Core_unix.Host]
Find an entry in hosts with the given address.
getbyaddr_exn [Core_unix.Host]
getbygid [Core_unix.Group]
getbygid_exn [Core_unix.Group]
getbyname [Core_unix.Service]
Find an entry in services with the given name.
getbyname [Core_unix.Protocol]
Find an entry in protocols with the given name.
getbyname [Core_unix.Host]
Find an entry in hosts with the given name.
getbyname [Core_unix.Group]
getbyname [Core_unix.Passwd]
getbyname_exn [Core_unix.Service]
getbyname_exn [Core_unix.Protocol]
getbyname_exn [Core_unix.Host]
getbyname_exn [Core_unix.Group]
getbyname_exn [Core_unix.Passwd]
getbynumber [Core_unix.Protocol]
Find an entry in protocols with the given protocol number.
getbynumber_exn [Core_unix.Protocol]
getbyport [Core_unix.Service]
Find an entry in services with the given service number.
getbyport_exn [Core_unix.Service]
getbyuid [Core_unix.Passwd]
getbyuid_exn [Core_unix.Passwd]
getcwd [Core_unix]
Return the name of the current working directory.
getcwd [Core_sys]
Return the current working directory of the process.
getegid [Core_unix]
Return the effective group id under which the process runs.
getenv [Core_sys]
Return the value associated to a variable in the process environment.
getenv_exn [Core_sys]
geteuid [Core_unix]
Return the effective user id under which the process runs.
getgid [Core_unix]
Return the group id of the user executing the process.
getgroups [Core_unix]
Return the list of groups to which the user executing the process belongs.
gethostname [Core_unix]
Return the name of the local host.
getitimer [Core_unix]
Return the current status of the given interval timer.
getlogin [Core_unix]
Return the login name of the user executing the process.
getnameinfo [Core_unix]
getnameinfo addr opts returns the host name and service name corresponding to the socket address addr.
getpeername [Core_unix]
Return the address of the host connected to the given socket.
getpid [Core_unix]
Return the pid of the process.
getppid [Core_unix]
Return the pid of the parent process.
getpwent [Core_unix.Passwd]
getpwent_exn [Core_unix.Passwd]
getsockname [Core_unix]
Return the address of the given socket.
getsockopt [Core_unix]
Return the current status of a boolean-valued option in the given socket.
getsockopt_float [Core_unix]
Same as UnixLabels.getsockopt for a socket option whose value is a floating-point number.
getsockopt_int [Core_unix]
Same as UnixLabels.getsockopt for an integer-valued socket option.
getsockopt_optint [Core_unix]
Same as UnixLabels.getsockopt for a socket option whose value is an int option.
gettcpopt_bool [Linux_ext]
gettcpopt_bool sock opt
gettimeofday [Core_unix]
Same as UnixLabels.time, but with resolution better than 1 second.
getuid [Core_unix]
Return the user id of the user executing the process.
gigabytes [Byte_units]
gmtime [Core_unix]
Convert a time in seconds, as returned by UnixLabels.time, into a date and a time.
group [Core_list]
group l ~break returns a list of lists (i.e., groups) whose concatenation is equal to the original list.
group [Core_hashtbl_intf.Create_sig.S]
group_by [Core_set_intf.S1]
group_by [Core_set_intf.Gen.S]
group_by [Core_set_intf.S]
groupi [Core_list]
This is just like group, except that you get the index in the original list of the current element along with the two elements.

H
half_open_intervals_are_a_partition [Interval_intf.Gen.S]
handle [Signal]
handle t f is set t (`Handle f).
handle_default [Signal]
handle_default t is set t `Default.
handle_uncaught [Exn]
handle_uncaught ~exit f catches an exception escaping f and prints an error message to stderr.
handle_unix_error [Core_unix]
handle_unix_error f x applies f to x and returns the result.
has_key [Core_map_intf.S2]
has_key [Core_map_intf.Gen.S]
equivalent to mem
has_key [Core_map_intf.S]
hash [Hashable.S_binable]
hash [Hashable.S]
hash [Core_string]
slightly faster hash function on strings
hash [Core_hashtbl_intf.Key]
hash [Core_hashtbl]
hash_param [Core_hashtbl]
hashable [Core_hashtbl_intf.Monomorphic.S]
hd [Core_list]
hd_exn [Core_list]
Return the first element of the given list.
heap_el_get_el [Heap]
heap_el_get_el heap_el
heap_el_is_valid [Heap]
heap_el_is_valid heap_el
heap_el_mem [Heap]
heap_el_mem heap heap_el
host [Host_and_port]
hour [Span]
hup [Signal]
Hangup on controlling terminal

I
id [Fn]
The identity function
id [Core_thread]
Return the identifier of the given thread.
ident [Memo]
Returns memoized version of any function where data is kept until argument changes.
ident [Common]
idrss [Core_unix.Resource_usage]
if_indextoname [Core_unix]
ifprintf [Core_printf]
ignore [Signal]
ignore t is set t `Ignore.
ignore [Monad.S2]
ignore [Monad.Make2]
ignore [Monad.Make]
ignore [Monad.S]
ignore t = map t ~f:(fun _ -> ()).
ignore [Force_once]
ignore () = create (fun () -> ())
ignore [Fn]
* ignore is the same as Pervasives.ignore.
ill [Signal]
Invalid hardware instruction
immutable_of_sexp [Common]
in_channel_length [Common]
in_channel_of_descr [Core_unix]
Create an input channel reading from the given descriptor.
in_channel_realpath [Linux_ext]
in_channel_realpath ic
inblock [Core_unix.Resource_usage]
incr [Int_intf.S]
incr [Core_hashtbl_intf.Access_sig.S]
index [Core_string]
index_exn [Core_string]
index_from [Core_string]
index_from_exn [Core_string]
inet6_addr_any [Core_unix]
A special IPv6 address, for use only with bind, representing all the Internet addresses that the host machine possesses.
inet6_addr_loopback [Core_unix]
A special IPv6 address representing the host machine (::1).
inet_addr_any [Core_unix]
A special IPv4 address, for use only with bind, representing all the Internet addresses that the host machine possesses.
inet_addr_loopback [Core_unix]
A special IPv4 address representing the host machine (127.0.0.1).
inet_addr_of_sexp [Core_unix]
inet_addr_of_string [Core_unix]
Conversion from the printable representation of an Internet address to its internal representation.
init [Zone]
init () pre-load all available time zones from disk, this function has no effect if it is called multiple times.
init [Core_string]
init [Core_list]
init f n is [(f 0); (f 1); ...; (f (n-1))].
init [Core_array]
init n ~f creates an array of length n where the ith element is initialized with f i (starting at zero)
initgroups [Core_unix]
initialized_zones [Zone]
initialized_zones () returns a sorted list of time zone names that have been loaded from disk thus far.
input [In_channel]
input [Bigstring]
input ?min_len ic ?pos ?len bstr tries to read len bytes (guarantees to read at least min_len bytes (must be greater than or equal to zero and smaller or equal to len), if possible, before returning) from input channel ic, and writes them to bigstring bstr starting at position pos.
input_all [In_channel]
input_binary_int [In_channel]
input_byte [In_channel]
input_char [In_channel]
input_line [In_channel]
input_line ?fix_win_eol t reads a line from t and returns it, without the newline ("\n") character at the end, and, if fix_win_eol the trailing "\r\n" is dropped.
input_lines [In_channel]
input_lines ?fix_win_eol t returns the list of lines read from t using input_line.
input_lines [Common]
Completely reads an input channel and returns the results as a list of strings.
input_value [In_channel]
insert_after [Doubly_linked]
insert_before [Doubly_linked]
constant-time insertion of a new element.
insert_delimiter [Int_conversions]
Takes an int represented as a string ((-|+)?0-9+) and puts delimiter every 3 digits starting from the right.
insert_first [Doubly_linked]
insert_last [Doubly_linked]
insert_underscores [Int_conversions]
Takes an int represented as a string ((-|+)?0-9+) and puts underscores every 3 digits starting from the right.
int [Signal]
Interactive interrupt (ctrl-C)
int [Int_conversions]
int32 [Int_conversions]
int32_of_sexp [Std_internal]
int32_to_int64 [Int_conversions]
int32_to_nativeint [Int_conversions]
int64 [Int_conversions]
int64_of_sexp [Std_internal]
int_of_file_descr [Core_unix]
int_of_file_descr fd converts file descriptor fd to the internal integer value.
int_of_float [Std_internal]
int_of_sexp [Std_internal]
int_to_int64 [Int_conversions]
int_to_nativeint [Int_conversions]
integral [Float_intf.S.Parts]
inter [Core_set_intf.S1]
inter [Core_set_intf.Gen.S]
inter [Core_set_intf.S]
interactive [Core_sys]
This reference is initially set to false in standalone programs and to true if the code is being executed under the interactive toplevel system ocaml.
interruptible_pause [Time]
interruptible_pause span sleeps for span time unless interrupted (e.g.
intersect [Interval_intf.Gen.S]
invalid_argf [Core_printf]
invalid_argf [Common]
invariant [Weekday]
invariant [Month]
invariant [Hash_queue.S]
invariant t checks the invariants of the queue.
invariant [Hash_queue.Make]
invariant [Doubly_linked]
invariant [Dequeue]
invariant [Core_stack]
invariant [Core_hashtbl_intf.Access_sig.S]
invariant [Bag]
invariant [Avltree]
check invariants, raise an exception if any invariants fail
inverse [Core_list.Assoc]
iround [Float_intf.S]
iround t rounds t to the nearest int.
iround_exn [Float_intf.S]
iround_exn raises Invalid_argument in the same cases as round_towards_zero_exn
is_absolute [Core_filename]
is_activated [Timer]
is_activated timer
is_alpha [Core_char]
'a' - 'z' or 'A' - 'Z'
is_alphanum [Core_char]
'a' - 'z' or 'A' - 'Z' or '0' - '9'
is_business_day [Date]
is_closed [Linebuf]
Returns whether or not the line buffer is closed
is_digit [Core_char]
'0' - '9'
is_directory [Core_sys]
Returns `Yes if the file exists and is a directory
is_directory_exn [Core_sys]
is_empty [Interval_intf.Gen.S]
is_empty [Heap]
is_empty heap
is_empty [Hash_set]
is_empty [Hash_queue.Make]
is_empty [Fqueue]
is_empty [Dequeue]
is_empty [Core_string]
is_empty s returns true iff s is empty (i.e.
is_empty [Core_set_intf.S1]
is_empty [Core_set_intf.Gen.S]
is_empty [Core_map_intf.S2]
is_empty [Core_map_intf.Gen.S]
Test whether a map is empty or not.
is_empty [Core_hashtbl_intf.Access_sig.S]
is_empty [Container.S1_phantom_noclass]
is_empty [Container.S1_noclass]
is_empty [Container.S0_phantom_noclass]
is_empty [Container.S0_noclass]
is_empty [Core_set_intf.S]
is_empty [Core_map_intf.S]
is_empty_or_singleton [Interval_intf.Gen.S]
is_error [Result]
is_file [Core_sys]
Returns `Yes if the file exists and is a regular file
is_file_exn [Core_sys]
is_first [Doubly_linked]
is_implicit [Core_filename]
Return true if the file name is relative and does not start with an explicit reference to the current directory (./ or ../ in Unix), false if it starts with an explicit reference to the root directory or the current directory.
is_inf [Float_intf.S]
Ordinary float-only infinity test.
is_last [Doubly_linked]
is_locked [Lock_file]
is_locked path returns true when the file at path exists and is locked, false otherwise.
is_lowercase [Core_char]
'a' - 'z'
is_mmapped [Bigstring]
is_mmapped bstr
is_nan [Float_intf.S]
Ordinary float-only nan test.
is_none [Option]
is_none t returns true iff t = None.
is_none [Common]
is_ok [Result]
is_ok [Core_unix.Process_status]
is_posix_pathname_component [Core_filename]
is_posix_pathname_component f
is_prefix [Core_string]
is_prefix s ~prefix returns true if s starts with prefix.
is_print [Core_char]
' ' - '~'
is_relative [Core_filename]
Return true if the file name is relative to the current directory, false if it is absolute (i.e.
is_some [Option]
is_some t returns true iff t = Some x.
is_some [Common]
is_sorted [Core_list]
is_subset [Interval_intf.Gen.S]
is_suffix [Core_string]
is_suffix s ~suffix returns true if s ends with suffix.
is_sun_or_sat [Weekday]
is_sun_or_sat returns true if t is Sunday or Saturday
is_superset [Interval_intf.Gen.S]
is_superset i1 of_:i2 is whether i1 contains i2.
is_uppercase [Core_char]
'A' - 'Z'
is_weekday [Date]
is_weekend [Date]
is_whitespace [Core_char]
' ' or '\t' or '\r' or '\n'
isatty [Core_unix]
Return true if the given file descriptor refers to a terminal or console window, false otherwise.
isrss [Core_unix.Resource_usage]
iter [Result]
iter [Heap]
iter heap ~f iterate over heap with function f.
iter [Hash_set]
iter [Hash_heap.S]
iter [Hash_heap.Make]
iter [Hash_queue.Make]
iter [Dequeue]
iter [Core_set_intf.S1]
iter [Core_set_intf.Gen.S]
iter [Core_map_intf.S2]
iter [Core_map_intf.Gen.S]
iterator for map
iter [Core_hashtbl_intf.Access_sig.S]
iter [Container.S1_phantom_noclass]
iter [Container.S1_noclass]
iter [Container.S0_phantom_noclass]
iter [Container.S0_noclass]
iter [Core_set_intf.S]
iter [Core_map_intf.S]
iter [Avltree]
iterate over the tree
iter2 [Core_array]
iter2_exn [Core_list]
List.iter2_exn f [a1; ...; an] [b1; ...; bn] calls in turn f a1 b1; ...; f an bn.
iter_lines [In_channel]
iter_lines ?fix_win_eol t ~f applies f to each line read from t using input_line.
iter_vals [Hash_heap.S]
iter_vals [Hash_heap.Make]
iter_vals [Core_hashtbl_intf.Access_sig.S]
iteri [Hash_queue.S]
iter t ~f applies f to each key and element of the queue.
iteri [Hash_queue.Make]
iteri [Dequeue]
iteri [Core_list]
iteri is just like iter, but it also passes in the index of each element as the first argument to the iter'd function.
iteri [Core_array]
ixrss [Core_unix.Resource_usage]

J
jan [Month]
join [Monad.S2]
join [Monad.Make2]
join [Monad.Make]
join [Monad.S]
join t is t >>= (fun t' -> t').
join [Core_thread]
join th suspends the execution of the calling thread until the thread th has terminated.
jul [Month]
jun [Month]

K
kbprintf [Core_printf]
keys [Hash_queue.S]
keys t returns the keys in the order of the queue.
keys [Hash_queue.Make]
keys [Core_map_intf.S2]
keys [Core_map_intf.Gen.S]
returns list of keys in map
keys [Core_hashtbl_intf.Access_sig.S]
Returns the list of all unique keys for given hashtable.
keys [Core_map_intf.S]
kfprintf [Core_printf]
kill [Signal]
Termination (cannot be ignored)
kilobytes [Byte_units]
ksprintf [Core_printf]

L
last [Doubly_linked]
last [Core_list]
The final element of a list.
last [Core_array]
last_elt [Doubly_linked]
last_exn [Core_list]
laws [Quickcheck]
laws iter gen func applies func repeatedly (iter times) on output of gen, and if func ever returns false, then the input that caused the failure is returned optionally.
laws_exn [Quickcheck]
Like laws, but throws an exception instead of returning an option.
lbound [Interval_intf.GenSet.S]
lbound [Interval_intf.Gen.S]
lbound_exn [Interval_intf.GenSet.S]
lbound_exn [Interval_intf.Gen.S]
length [Squeue]
returns the number of elements in the queue.
length [Out_channel]
length [Substring_intf.S]
length [Make_substring.Base]
length [Make_substring.F]
length [In_channel]
length [Heap]
length heap
length [Hash_set]
length [Hash_queue.Make]
length [Fqueue]
length [Dequeue]
length [Core_string]
length [Core_set_intf.S1]
length [Core_set_intf.Gen.S]
length [Core_hashtbl_intf.Access_sig.S]
length [Container.S1_phantom_noclass]
length [Container.S1_noclass]
length [Container.S0_phantom_noclass]
length [Container.S0_noclass]
length [Core_set_intf.S]
length [Bigstring]
length bstr
length [Bigbuffer]
Return the number of characters currently contained in the buffer.
level [Bucket.S]
level [Bucket.Make]
lexicographic [Comparable]
lfindi [Core_string]
lfindi s ~f returns the index i of the first character in s satisfying f i s.[i].
lg [Quickcheck]
list generator
limit_of_sexp [Core_unix.RLimit]
link [Core_unix]
link ?force ~target ~link_name () creates a hard link named link_name to the file named target.
list_intersect [Interval_intf.Gen.S]
Assuming that ilist1 and ilist2 are lists of (disjoint) intervals, list_intersect ilist1 ilist2 returns the list of disjoint intervals that correspond to the intersection of ilist1 with ilist2.
list_of_sexp [Std_internal]
listen [Core_unix]
Set up a socket for receiving connection requests.
localtime [Core_unix]
Convert a time in seconds, as returned by UnixLabels.time, into a date and a time.
lock [Core_mutex]
lock mtx locks mtx, possibly waiting for it to be released first by another thread.
lock [Agnostic_mutex]
lockf [Core_unix]
lockf fd cmd size place a lock on a file_descr that prevents any other process from * calling lockf successfully on the same file.
lookup [Hash_queue.S]
lookup t k returns the value of the key-value pair in the queue with key k, if there is one.
lookup [Hash_queue.Make]
lookup_exn [Hash_queue.S]
lookup_exn [Hash_queue.Make]
lowercase [Core_string]
lowercase [Core_char]
Convert the given character to its equivalent lowercase character.
lpop [Squeue]
returns the element popped and the length of the queue after * this element was popped.
lseek [Core_unix.Native_file]
lseek [Core_unix]
Set the current position for a file descriptor
lsplit2 [Core_string]
lsplit2 line ~on optionally returns line split into two strings around the * first appearance of on from the left
lsplit2_exn [Core_string]
If the string s contains the character on, then lsplit2_exn s ~on returns a pair containing s split around the first appearance of on (from the left).
lstat [Core_unix.Native_file]
Same as UnixLabels.stat, but in case the file is a symbolic link, return the information for the link itself.
lstat [Core_unix]
Same as UnixLabels.stat, but in case the file is a symbolic link, return the information for the link itself.
lstrip [Core_string]
lstrip s returns a string with consecutive white space (tabs, spaces, newlines, and carriage returns) stripped from the beginning of s.

M
machine [Core_unix.Utsname]
machine_zone [Zone]
machine_zone () returns the machines current zone (t) by reading /etc/localtime.
majflt [Core_unix.Resource_usage]
major [Core_gc]
Do a minor collection and finish the current major collection cycle.
major_slice [Core_gc]
Do a minor collection and a slice of major collection.
make [Core_string]
make_matrix [Core_array]
Array.make_matrix dimx dimy e returns a two-dimensional array (an array of arrays) with first dimension dimx and second dimension dimy.
map [Result]
map [Monad.S2]
map [Monad.Make2]
map [Monad.Make]
map [Interval_intf.Gen.S]
map [Monad.S]
map t ~f is t >>| f.
map [Core_string]
map f s applies f to each character in s, and returns the resulting string.
map [Core_set_intf.S1]
map [Core_queue]
map [Core_map_intf.S2]
map [Core_map_intf.Gen.S]
returns new map with bound values replaced by f applied to the bound values
map [Core_list.Assoc]
map [Core_list]
List.map f [a1; ...; an] applies function f to a1, ..., an, and builds the list [f a1; ...; f an] with the results returned by f.
map [Core_hashtbl_intf.Access_sig.S]
map t f returns new table with bound values replaced by f applied to the bound values
map [Core_array]
Array.map ~f a applies function f to all the elements of a, and builds an array with the results returned by f: [| f a.(0); f a.(1); ...; f a.(Array.length a - 1) |].
map [Core_map_intf.S]
map1 [Tuple.T3]
map1 [Tuple.T2]
map2 [Tuple.T3]
map2 [Tuple.T2]
map2 [Option]
map2 o f map 'a option and 'b option to a 'c option using ~f
map2 [Core_array]
map2_exn [Core_list]
List.map2_exn f [a1; ...; an] [b1; ...; bn] is [f a1 b1; ...; f an bn].
map3 [Tuple.T3]
map3_exn [Core_list]
map_error [Result]
map_file [Bigstring]
map_file shared fd n memory-maps n characters of the data associated with descriptor fd to a bigstring.
mapi [Core_string]
mapi f s applies f to each character in s and its index, and returns the resulting string.
mapi [Core_map_intf.S2]
mapi [Core_map_intf.Gen.S]
like map, but function takes both key and data as arguments
mapi [Core_list]
mapi is just like map, but it also passes in the index of each element as the first argument to the mapped function.
mapi [Core_hashtbl_intf.Access_sig.S]
like map, but function takes both key and data as arguments
mapi [Core_array]
Same as Array.map, but the function is applied to the index of the element as first argument, and the element itself as second argument.
mapi [Core_map_intf.S]
mar [Month]
marshal [Bigstring_marshal]
marshal ?flags v marshals value v to a bigstring using marshalling flags flags.
marshal_blit [Bigstring_marshal]
marshal_blit ?flags v ?pos ?len buf marshals value v to bigstring buf starting at position pos and at most len bytes.
marshal_data_size [Bigstring_marshal]
marshal_data_size ?pos buf
marshal_to_sock [Bigstring_marshal]
marshal_to_sock ?buf sock v marshals data v to socket sock using marshalling buffer buf, and marshalling flags flags.
max [Utest.Debug_compare]
max [Int_set]
max t the biggest number in the set (if it exists)
max [Comparable.S_common]
max [Comparable.Inherit]
max [Comparable.Make_common]
max_array_length [Core_sys]
Maximum length of a normal array.
max_elt [Core_set_intf.S1]
max_elt [Core_set_intf.Gen.S]
max_elt [Core_map_intf.S2]
max_elt [Core_map_intf.Gen.S]
max_elt map
max_elt [Core_set_intf.S]
max_elt [Core_map_intf.S]
max_elt_exn [Core_set_intf.S1]
max_elt_exn [Core_set_intf.Gen.S]
max_elt_exn [Core_map_intf.S2]
max_elt_exn [Core_map_intf.Gen.S]
max_elt_exn map
max_elt_exn [Core_set_intf.S]
max_elt_exn [Core_map_intf.S]
max_finite_value [Float_intf.S]
max_inan [Float_intf.S]
max that returns the other value if one of the values is a nan.
max_iovecs [Core_unix.IOVec]
max_length [Core_array]
Array lengths l satisfy 0 <= l < max_length.
max_string_length [Core_sys]
Maximum length of a string.
max_value [Int_intf.S]
max_value [Float_intf.S]
max_value [Core_char]
maxrss [Core_unix.Resource_usage]
may [Month]
mcast_join [Core_unix]
mcast_join ?ifname sock addr join a multicast group at addr with socket sock, optionally using network interface ifname.
mcast_leave [Core_unix]
mcast_leave ?ifname sock addr leaves a multicast group at addr with socket sock, optionally using network interface ifname.
megabytes [Byte_units]
mem [Int_set]
mem t i test whether i is a member of the set
mem [Heap]
mem heap el
mem [Hash_set]
mem [Hash_heap.S]
mem [Hash_queue.S]
mem q k returns true iff there is some (k, v) in the queue.
mem [Hash_heap.Make]
mem [Hash_queue.Make]
mem [Core_set_intf.S1]
mem [Core_set_intf.Gen.S]
mem [Core_map_intf.S2]
mem [Core_map_intf.Gen.S]
mem key map tests whether map contains a binding for key
mem [Core_list.Assoc]
mem [Core_list]
mem a l is true if and only if a is equal to an element of l.
mem [Core_hashtbl_intf.Access_sig.S]
mem [Core_array]
mem el arr returns true iff arr.(i) = el for some i
mem [Container.S0_noclass]
mem [Core_set_intf.S]
mem [Core_map_intf.S]
mem [Avltree]
return true if key is present in the tree, otherwise return false.
memq [Core_list]
Same as List.mem, but uses physical equality instead of structural equality to compare list elements.
merge [Core_map_intf.S2]
merge [Core_map_intf.Gen.S]
merges two maps
merge [Core_list]
Merge two lists: Assuming that l1 and l2 are sorted according to the comparison function cmp, merge cmp l1 l2 will return a sorted list containting all the elements of l1 and l2.
merge [Core_hashtbl_intf.Access_sig.S]
merge [Core_map_intf.S]
merge_into [Core_hashtbl_intf.Access_sig.S]
Merge one hashtable into another.
microsecond [Span]
millisecond [Span]
min [Utest.Debug_compare]
min [Int_set]
min t the smallest number in the set (if it exists)
min [Comparable.S_common]
min [Comparable.Inherit]
min [Comparable.Make_common]
min_elt [Core_set_intf.S1]
min_elt [Core_set_intf.Gen.S]
min_elt [Core_map_intf.S2]
min_elt [Core_map_intf.Gen.S]
min_elt map
min_elt [Core_set_intf.S]
min_elt [Core_map_intf.S]
min_elt_exn [Core_set_intf.S1]
min_elt_exn [Core_set_intf.Gen.S]
min_elt_exn [Core_map_intf.S2]
min_elt_exn [Core_map_intf.Gen.S]
min_elt_exn map
min_elt_exn [Core_set_intf.S]
min_elt_exn [Core_map_intf.S]
min_finite_value [Float_intf.S]
min_inan [Float_intf.S]
min that returns the other value if one of the values is a nan.
min_value [Int_intf.S]
min_value [Float_intf.S]
min_value [Core_char]
minflt [Core_unix.Resource_usage]
minor [Core_gc]
Trigger a minor collection.
minus_one [Int_intf.S]
minute [Span]
mkdir [Core_unix]
Create a directory.
mkdtemp [Core_unix]
mkdtemp prefix creates a temporary directory with prefix, automatically appending a suffix of six random characters to make the name unique.
mkfifo [Core_unix]
Create a named pipe with the given permissions.
mknod [Core_unix]
mknod ?file_kind ?perm ?major ?minor path creates a filesystem entry.
mkstemp [Core_unix]
mkstemp prefix creates and opens a unique temporary file with prefix, automatically appending a suffix of six random characters to make the name unique.
mktime [Core_unix]
Convert a date and time, specified by the tm argument, into a time in seconds, as returned by UnixLabels.time.
mlockall [Core_unix.Mman]
mod_float [Float_intf.S]
mod_float x y returns a result with the same sign as x.
modf [Float_intf.S]
modf [Common]
mon [Weekday]
month [Date]
msgrcv [Core_unix.Resource_usage]
msgsnd [Core_unix.Resource_usage]
munlockall [Core_unix.Mman]

N
name [Zone]
name zone returns the name of the time zone
name [Linebuf]
nanosecond [Span]
nanosleep [Core_unix]
nanosleep f delays execution of the program for at least f seconds.
nativeint [Int_conversions]
nativeint_of_sexp [Std_internal]
nativeint_to_int64 [Int_conversions]
neg [Int_intf.S]
neg [Float_intf.S]
never_returns [Common]
newline [Out_channel]
next [Doubly_linked]
constant-time move to next or previous element.
next_key [Core_map_intf.S2]
next_key [Core_map_intf.Gen.S]
rank t k if k is in t, returns the number of keys strictly less than k in t, otherwise None
next_key [Core_map_intf.S]
nget [Core_string]
nget s i Gets the char at normalized position i in s.
nget [Core_array]
Array access with normalized index.
nice [Core_unix.Priority]
nice [Core_unix]
Change the process priority.
nivcsw [Core_unix.Resource_usage]
nng [Quickcheck]
natural number generator
nodename [Core_unix.Utsname]
non [Fn]
Negates a function
normalize [Ordered_collection_common]
normalize [Core_array]
normalize array index returns a new index into the array such that if index is less than zero, the returned index will "wrap around" -- i.e.
nov [Month]
now [Time_internal.T]
now [Time]
now [Std.Time.Ofday]
nset [Core_string]
nset s i c Sets the char at normalized position i to c.
nset [Core_array]
Array modification with normalized index.
nsignals [Core_unix.Resource_usage]
nswap [Core_unix.Resource_usage]
nth [Core_list]
nth [Bigbuffer]
get the (zero-based) n-th character of the buffer.
nth_exn [Core_list]
Return the n-th element of the given list.
num_bits [Word_size]
num_bits [Int_intf.S]
num_threads [Core_thread]
num_threads () attempts to return the number of currently running threads by parsing /proc.
nvcsw [Core_unix.Resource_usage]

O
ocaml_version [Core_sys]
ocaml_version is the version of Objective Caml.
oct [Month]
of_alist [Core_map_intf.S2]
of_alist [Core_map_intf.Gen.S]
creates map from association list with unique keys
of_alist [Core_hashtbl_intf.Create_sig.S]
of_alist [Core_map_intf.S]
of_alist_exn [Core_map_intf.S2]
of_alist_exn [Core_map_intf.Gen.S]
creates map from association list with unique keys.
of_alist_exn [Core_hashtbl_intf.Create_sig.S]
of_alist_exn [Core_map_intf.S]
of_alist_multi [Core_map_intf.S2]
of_alist_multi [Core_map_intf.Gen.S]
creates map from association list with possibly repeated keys.
of_alist_multi [Core_hashtbl_intf.Create_sig.S]
of_alist_multi [Core_map_intf.S]
of_array [Heap]
of_array ?min_size cmp ar
of_array [Core_set_intf.S1]
of_array [Core_set_intf.Gen.S]
of_array [Core_queue]
of_array [Core_set_intf.S]
of_bigstring [Substring_intf.S]
of_bigstring [Make_substring.Base]
of_bigstring [Make_substring.F]
of_bigstring [Core_unix.IOVec]
of_bigstring ?pos ?len bstr
of_caml_int [Signal]
of_caml_int constructs a Signal.t given an O'Caml internal signal number.
of_char [Core_string]
of_date_ofday [Time]
of_date_time_strings [Time]
of_date_time_strings_utc [Time]
of_day [Span]
of_filename_string [Time]
of_float [Floatable.S]
of_float [Core_int64]
of_hr [Span]
of_int [Weekday]
of_int i returns i'th weekday if i is in 0,1,...,6.
of_int [Month]
of_int i returns i'th month if i is in 1,2,...,12.
of_int [Float_intf.S]
of_int [Core_unix.File_descr]
of_int [Core_nativeint]
of_int [Core_int64]
of_int [Core_int63]
of_int [Core_int32]
of_int [Core_int]
of_int [Core_char]
Return the character with the given ASCII code or None is the argument is outside the range 0 to 255.
of_int32 [Core_nativeint]
of_int32 [Core_int64]
of_int32 [Core_int32]
of_int32 [Core_int]
of_int32_exn [Int_intf.S]
of_int64 [Float_intf.S]
of_int64 [Core_nativeint]
of_int64 [Core_int64]
of_int64 [Core_int32]
of_int64 [Core_int]
of_int64_exn [Int_intf.S]
of_int64_exn [Core_int]
of_int_exn [Weekday]
of_int_exn i should have i in 0,1,...,6 and returns the i'th weekday.
of_int_exn [Month]
of_int_exn i should have i in 1,2,...,12 and returns the i'th month.
of_int_exn [Intable.S]
of_int_exn [Core_char]
Return the character with the given ASCII code.
of_int_sec [Span]
of_int_style [Core_sexp]
of_list [Hash_set.Poly]
of_list [Hash_set_intf.S_binable]
of_list [Hash_set_intf.S]
of_list [Hash_set.Make_binable]
of_list [Hash_set.Make]
of_list [Doubly_linked]
of_list l returns a doubly-linked list t with the same elements as l and in the same order (i.e.
of_list [Core_stack]
of_list l returns a stack whose top is the first element of l and * bottom is the last element of l.
of_list [Core_set_intf.S1]
of_list [Core_set_intf.Gen.S]
of_list [Core_queue]
of_list list returns a queue t with the elements of list in the same order as the elements of list (i.e.
of_list [Core_array]
Array.of_list l returns a fresh array containing the elements of l.
of_list [Core_set_intf.S]
of_list_rev [Core_array]
of_list_rev l converts from list then reverses in place
of_local_date_ofday [Time]
of_localized_string [Time]
of_localized_string zone str read in the given string assuming that it represents a time in zone and return the appropriate Time.t
of_min [Span]
of_ms [Span]
of_nativeint [Core_nativeint]
of_nativeint [Core_int64]
of_nativeint [Core_int32]
of_nativeint [Core_int]
of_nativeint_exn [Int_intf.S]
of_ns [Span]
of_option [Result]
of_sec [Span]
of_sec [Ofday]
of_span_since_start_of_day [Ofday]
of_string [Span]
of_string [Sexpable.To_stringable]
of_string [Substring_intf.S]
of_string [Make_substring.Base]
of_string [Make_substring.F]
of_string [Stringable.S]
of_string [Core_unix.IOVec]
of_string ?pos ?len str
of_string [Bigstring]
of_string ?pos ?len str
of_string_fix_proto [Time]
of_string_iso8601_basic [Date]
of_string_iso8601_extended [Ofday]
of_string_iso8601_extended [Date]
of_system_int [Signal]
of_system_int and to_system_int return and take respectively a signal number corresponding to those in the system's /usr/include/bits/signum.h (or equivalent).
of_thunk [Utest.Only_in_test]
of_time [Date]
of_tm [Date]
of_unix [Core_unix.Process_status]
of_us [Span]
of_utc_offset [Zone]
of_utc_offset offset returns a timezone with a static UTC offset (given in hours).
ofday_occurrence [Time]
ofday_occurrence ofday side now returns a Time.t that is the occurrence of ofday (in local time) which is the latest occurrence before now or the earliest occurrence after now, according to side.
ofday_occurrence_utc [Time]
ofday_occurrence ofday side now returns a Time.t that is the occurrence of ofday (in UTC) which is the latest occurrence before now or the earliest occurrence after now, according to side.
ok [Result]
ok_exn [Result]
ok_exn t returns x if t = Ok x, otherwise it raises an exn.
ok_fst [Result]
ok_fst is useful with List.partition_map.
ok_if_true [Result]
ok_unit [Result]
ok_unit = Ok (), used to avoid allocation as a performance hack
one [Int_intf.S]
oneof [Quickcheck]
Given a list of generators, returns generator that randomly uses one of the generators from the list
open_connection [Core_unix]
Connect to a server at the given address.
open_in_gen [Sys_open_patch]
Reimplementation of Pervasives.open_in_gen
open_out_gen [Sys_open_patch]
Reimplementation of Pervasives.open_out_gen
open_process [Core_unix]
See UnixLabels.open_process_in.
open_process_full [Core_unix]
open_process_in [Core_unix]
High-level pipe and process management.
open_process_out [Core_unix]
See UnixLabels.open_process_in.
open_temp_file [Core_filename]
Same as Core_filename.temp_file, but returns both the name of a fresh temporary file, and an output channel opened (atomically) on this file.
opendir [Core_unix]
Open a descriptor on a directory
openfile [Core_unix]
Open the named file with the given flags.
option_of_sexp [Std_internal]
os_type [Core_sys]
Operating system currently executing the Caml program.
oublock [Core_unix.Resource_usage]
out_channel_length [Common]
out_channel_of_descr [Core_unix]
Create an output channel writing on the given descriptor.
out_channel_realpath [Linux_ext]
out_channel_realpath oc
output [Out_channel]
output [Bigstring]
output ?min_len oc ?pos ?len bstr tries to output len bytes (guarantees to write at least min_len bytes (must be equal to or greater than zero), if possible, before returning) from bigstring bstr starting at position pos to output channel oc.
output_binary_int [Out_channel]
output_buffer [Bigbuffer]
output_buffer oc b writes the current contents of buffer b on the output channel oc.
output_byte [Out_channel]
output_char [Out_channel]
output_lines [Out_channel]
output_string [Out_channel]
output_value [Out_channel]

P
pack_float [Binary_packing]
pack_signed_16 [Binary_packing]
pack_signed_32 [Binary_packing]
pack_signed_32_int [Binary_packing]
pack_signed_64 [Binary_packing]
pack_signed_64_int [Binary_packing]
pack_signed_8 [Binary_packing]
pack_unsigned_8 [Binary_packing]
parent_dir_name [Core_filename]
The conventional name for the parent of the current directory (e.g.
parse [Core_arg]
parse_argv [Core_arg]
parse_four_digits [Time_internal.Helpers]
parse_two_digits [Time_internal.Helpers]
partial_iter [Core_queue]
partial_iter t ~f iterates through t until f returns `Stop
partition [Core_set_intf.S1]
partition [Core_set_intf.Gen.S]
partition [Core_list]
partition p l returns a pair of lists (l1, l2), where l1 is the list of all the elements of l that satisfy the predicate p, and l2 is the list of all the elements of l that do not satisfy p.
partition [Core_set_intf.S]
partition_map [Core_list]
partition_map t ~f partitions t according to f.
pause [Time]
pause span sleeps for span time.
pause [Core_unix]
Wait until a non-ignored, non-blocked signal is delivered.
pause_forever [Time]
pause_forever sleeps indefinitely.
peek [Core_queue]
peek t returns None if t is empty, otherwise it returns Some x where x is the front of t.
peek_exn [Core_queue]
peek_exn t raises Empty if t is empty, otherwise it returns the front of t.
permute [Core_list]
permute l shuffles l, using Random.int
permute [Core_array]
permute ar randomly permutes ar in place
permute [Array_permute]
randomly permute an array.
pfg [Quickcheck]
positive float generator
pg [Quickcheck]
pair generator
phys_equal [Mutex0]
phys_equal [Common]
pipe [Signal]
Broken pipe
pipe [Core_unix]
Create a pipe.
poly_t_of_sexp [Interval_intf.S.Set]
poly_t_of_sexp [Interval_intf.S]
pop [Squeue]
pops an element off the queue, blocking until something is * available
pop [Heap]
pop heap
pop [Hash_heap.S]
pop [Hash_heap.Make]
pop [Fqueue]
Like pop_exn, but returns result optionally, without exception
pop [Core_stack]
pop t returns None if t is empty, otherwise it returns Some x where x is the top of t and removes x from the top of t.
pop_exn [Heap]
pop_exn heap
pop_exn [Hash_heap.S]
pop_exn [Hash_heap.Make]
pop_exn [Fqueue]
Like top_exn, but returns pair of the top element, and a new queue with the top element removed
pop_exn [Core_stack]
pop_exn t removes and returns the top element of t, raising Empty if t is empty.
pop_heap_el [Heap]
pop_heap_el heap
pop_heap_el_exn [Heap]
pop_heap_el_exn heap
pop_with_key [Hash_heap.S]
pop_with_key [Hash_heap.Make]
pop_with_key_exn [Hash_heap.S]
pop_with_key_exn [Hash_heap.Make]
port [Host_and_port]
pos [Out_channel]
pos [Substring_intf.S]
pos [Make_substring.F]
pos [In_channel]
pos_in [Common]
pos_out [Common]
pp [Time]
pp [Span]
pp [Ofday]
pp [Identifiable.S]
pp [Exn]
pp [Date]
pp [Core_string]
This has to be public for interactive top-levels.
pr_get_name [Linux_ext]
pr_get_name () gets the name of the executing thread.
pr_get_pdeathsig [Linux_ext]
pr_get_pdeathsig () get the signal that will be sent to the currently executing process when its parent dies.
pr_set_name_first16 [Linux_ext]
pr_set_name_first16 name sets the name of the executing thread to name.
pr_set_pdeathsig [Linux_ext]
pr_set_pdeathsig s sets the signal s to be sent to the executing process when its parent dies.
pred [Int_intf.S]
prefix [Substring_intf.S]
prefix [Make_substring.F]
prefix [Core_string]
prefix s n returns the longest prefix of s of length less than or equal to n
prev [Doubly_linked]
prev_key [Core_map_intf.S2]
prev_key [Core_map_intf.Gen.S]
prev_key t k returns the largest key in t less than k
prev_key [Core_map_intf.S]
previous_weekday [Date]
print [Core_printexc]
print_backtrace [Core_printexc]
print_stat [Core_gc]
Print the current values of the memory management counters (in human-readable form) into the channel argument.
printf [Core_printf]
prof [Signal]
Profiling interrupt
protect [Exn]
protect [Common]
protectx [Exn]
Executes f and afterwards executes finally, whether f throws an exception or not.
protectx [Common]
See exn.mli
pselect [Core_unix]
pselect rfds wfds efds timeout sigmask like Core_unix.select but also allows one to wait for the arrival of signals.
push [Squeue]
Blocks until there's room on the queue, then pushes.
push [Heap]
push heap el pushes element el on heap.
push [Hash_heap.S]
push [Hash_heap.Make]
push [Fqueue]
push a single element on queue
push [Core_stack]
push t x adds x to the top of stack t.
push_back [Dequeue]
push_exn [Hash_heap.S]
push_exn [Hash_heap.Make]
push_front [Dequeue]
push_heap_el [Heap]
push_heap_el heap heap_el pushes heap_el on heap.
push_or_drop [Squeue]
Pushes an event on the queue if the queue is less than maxsize, otherwise drops it.
push_top [Fqueue]
push a single element on the *top* of the queue
push_uncond [Squeue]
Does not block, may grow the queue past maxsize
putenv [Core_unix]
Unix.putenv ~key ~data sets the value associated to a variable in the process environment.

Q
quick_stat [Core_gc]
Same as stat except that live_words, live_blocks, free_words, free_blocks, largest_free, and fragments are set to 0.
quit [Signal]
Interactive termination
quote [Core_filename]
Return a quoted version of a file name, suitable for use as one argument in a command line, escaping all meta-characters.

R
raise_error [Result]
raise_error t returns x if t = Ok x, and raises exn if t = Error exn
randomize [Span]
randomize t ~percent returns a random span between t - percent * t and t + percent * t
range [Core_list]
range stride low high is the list of integers from low(inclusive) to high(exclusive), stepping by stride.
range_to_alist [Core_map_intf.S2]
range_to_alist [Core_map_intf.Gen.S]
range_to_alist t ~min ~max returns an associative list of the elements whose keys lie in min, max (inclusive), with the smallest key being at the head of the list
range_to_alist [Core_map_intf.S]
ranges [Int_set]
ranges t return a list of all ranges that make up the set
rank [Core_map_intf.S2]
rank [Core_map_intf.Gen.S]
rank [Core_map_intf.S]
rcontains_from [Core_string]
read [Linebuf]
Calls try_read every 0.01 seconds and returns when a line is available.
read [Core_unix]
read fd buff ofs len reads len characters from descriptor fd, storing them in string buff, starting at position ofs in string buff.
read [Bigstring]
read ?min_len fd ?pos ?len bstr reads at least min_len (must be greater than or equal zero) and at most len (must be greater than or equal to min_len) bytes from file descriptor fd, and writes them to bigstring bstr starting at position pos.
read_assume_fd_is_nonblocking [Core_unix]
read_assume_fd_is_nonblocking fd ?pos ?len buf calls the system call read ASSUMING THAT IT IS NOT GOING TO BLOCK.
read_assume_fd_is_nonblocking [Bigstring]
read_assume_fd_is_nonblocking fd ?pos ?len bstr reads up to len bytes into bigstring bstr starting at position pos from file descriptor fd without yielding to other OCaml-threads.
read_lines [In_channel]
convenience function -- read_lines filename Opens filename, reads all lines, and closes the file.
read_lines [Common]
read_lines filename Opens filename, reads all lines, and closes the file.
read_only_of_sexp [Common]
read_wrap [Common]
read_write_of_sexp [Common]
readdir [Core_unix]
readdir [Core_sys]
Return the names of all files present in the given directory.
readdir_ino [Core_unix]
readdir_ino dh return the next entry in a directory (((filename, inode)).
readlink [Core_unix]
Read the contents of a link.
really_input [In_channel]
really_input [Bigstring]
really_input ic ?pos ?len bstr reads exactly len bytes from input channel ic, and writes them to bigstring bstr starting at position pos.
really_output [Bigstring]
really_output oc ?pos ?len bstr outputs exactly len bytes from bigstring bstr starting at position pos to output channel oc.
really_read [Bigstring]
really_read fd ?pos ?len bstr reads len bytes from file descriptor fd, and writes them to bigstring bstr starting at position pos.
really_recv [Bigstring]
really_recv sock ?pos ?len bstr receives len bytes from socket sock, and writes them to bigstring bstr starting at position pos.
really_send_no_sigpipe [Bigstring]
really_send_no_sigpipe sock ?pos ?len bstr sends len bytes in bigstring bstr starting at position pos to socket sock without blocking and ignoring SIGPIPE.
really_write [Bigstring]
really_write fd ?pos ?len bstr writes len bytes in bigstring bstr starting at position pos to file descriptor fd.
realpath [Core_filename]
realpath path
record_backtrace [Core_printexc]
recv [Core_unix]
Receive data from an unconnected socket.
recvfrom [Core_unix]
Receive data from an unconnected socket.
recvfrom_assume_fd_is_nonblocking [Bigstring]
recvfrom_assume_fd_is_nonblocking sock ?pos ?len bstr reads up to len bytes into bigstring bstr starting at position pos from socket sock without yielding to other OCaml-threads.
reduce [Core_list]
reduce [Core_array]
reduce f [a1; ...; an] is f (... (f (f a1 a2) a3) ...) an.
reduce_exn [Core_list]
reduce f [a1; ...; an] is f (... (f (f a1 a2) a3) ...) an.
reduce_exn [Core_array]
register [Utest.S]
register ?get_location test registers a unit-test that triggers errors via asserts (either regular or via the Asserts library).
register [Pretty_printer]
register_thunk [Utest.S]
register_thunk is the same as register, except that it applies Only_in_test.of_thunk to the test for you.
release [Core_unix.Utsname]
rem [Int_intf.S]
remove [Timer]
remove event removes event from its associated timer.
remove [Heap]
remove heap_el removes heap_el from its associated heap.
remove [Hash_set]
remove [Hash_heap.S]
remove [Hash_queue.S]
remove [Hash_heap.Make]
remove [Hash_queue.Make]
remove [Doubly_linked]
constant-time removal of an element.
remove [Core_sys]
Remove the given file name from the file system.
remove [Core_set_intf.S1]
remove [Core_set_intf.Gen.S]
remove [Core_map_intf.S2]
remove [Core_map_intf.Gen.S]
returns a new map with any binding for the key in question removed
remove [Core_list.Assoc]
remove [Core_hashtbl_intf.Access_sig.S]
remove [Core_set_intf.S]
remove [Core_map_intf.S]
remove [Bag]
remove t elt removes elt from the bag t, raising an exception if elt is not in the bag.
remove [Avltree]
remove_exn [Hash_queue.S]
remove_exn [Hash_queue.Make]
remove_first [Doubly_linked]
remove_index [Core_set_intf.S1]
remove_index [Core_set_intf.Gen.S]
remove_index [Core_set_intf.S]
remove_last [Doubly_linked]
remove_one [Core_hashtbl_intf.Access_sig.S]
remove_one [Bag]
remove_one t removes some element from the bag, and returns its value.
rename [Core_unix]
rename old new changes the name of a file from old to new.
rename [Core_sys]
repeat [Quickcheck]
repeat n test t tests that the first n values generated by t all pass test
replace [Ref]
replace t f is t := f !t
replace [Hash_heap.S]
replace [Hash_queue.S]
replace q k v changes the value of key k in the queue to v.
replace [Hash_heap.Make]
replace [Hash_queue.Make]
replace [Core_hashtbl_intf.Access_sig.S]
replace [Core_array]
replace t i ~f = t.(i) <- f (t.(i)).
replace_all [Core_array]
modifies an array in place -- ar.(i) will be set to f(ar.(i))
replace_exn [Hash_queue.S]
replace_exn [Hash_queue.Make]
reraise [Exn]
reraise_uncaught [Exn]
reraisef [Exn]
reschedule [Timer]
reschedule event ?randomize ?interval span reschedules event to start by time span span later than originally scheduled, and change its interval behaviour as described for Timer.add.
reset [Linebuf]
reopens the file and seeks to the beginning.
reset [Bigbuffer]
Empty the buffer and deallocate the internal string holding the buffer contents, replacing it with the initial internal string of length n that was allocated by Bigbuffer.create n.
resource_of_sexp [Core_unix.RLimit]
resource_of_sexp__ [Core_unix.RLimit]
return [Monad.S2]
return [Monad.Basic2]
return [Monad.Basic]
return [Monad.Make2]
return [Monad.Make]
return [Monad.S]
return v returns the (trivial) computation that returns v.
rev [Core_list]
List reversal.
rev_append [Core_list]
List.rev_append l1 l2 reverses l1 and concatenates it to l2.
rev_filter [Core_list]
Like filter, but reverses the order of the input list
rev_filter_map [Core_list]
rev_filter_map f l is the reversed sublist of l containing only elements for which f returns Some e.
rev_filter_mapi [Core_list]
rev_filter_mapi is just like rev_filter_map, but it also passes in the index of each element as the first argument to the mapped function.
rev_inplace [Core_array]
rev_inplace t reverses t in place
rev_map [Core_list]
List.rev_map f l gives the same result as List.rev (ListLabels.map f l), but is more efficient.
rev_map2_exn [Core_list]
List.rev_map2_exn f l1 l2 gives the same result as List.rev (List.map2_exn f l1 l2), but is more efficient.
rev_map3_exn [Core_list]
rev_map_append [Core_list]
rev_map_append ~f l1 l2 reverses l1 mapping f over each element, and appends the result to the front of l2.
rev_mapi [Core_list]
rewinddir [Core_unix]
Reposition the descriptor to the beginning of the directory
rfindi [Core_string]
rfindi s ~f returns the index i of the last character in s satisfying f i s.[i].
rindex [Core_string]
rindex_exn [Core_string]
rindex_from [Core_string]
rindex_from_exn [Core_string]
rmdir [Core_unix]
Remove an empty directory.
root [Core_filename]
The path of the root.
round [Std_internal]
round [Float_intf.S]
round_down [Float_intf.S]
round_down_exn [Float_intf.S]
round_towards_zero [Std_internal]
round_towards_zero [Float_intf.S]
round_towards_zero returns None if round_towards_zero_exn raises an exception
round_towards_zero_exn [Std_internal]
round_towards_zero_exn [Float_intf.S]
round_towards_zero_exn raises Invalid_argument when either trying to handle nan or trying to handle a float outside the range (-.
round_up [Float_intf.S]
round_up_exn [Float_intf.S]
rsplit2 [Core_string]
rsplit2 line ~on optionally returns line split into two strings around the * first appearance of on from the right
rsplit2_exn [Core_string]
If the string s contains the character on, then rsplit2_exn s ~on returns a pair containing s split around the first appearance of on (from the right).
rstrip [Core_string]
rstrip s returns a string with consecutive white space (tabs, spaces, newlines, and carriage returns) stripped from the end of s.
run_tests [Utest.S]
Same as run_tests but returns false if one of the tests fails
run_tests_and_exit [Utest.S]
run_tests_and_exit Run all tests registered with register.

S
sat [Weekday]
scale [Span]
scale [Float_intf.S]
sched_setaffinity [Linux_ext]
sec [Std]
second [Span]
seek [Out_channel]
seek [In_channel]
seek_in [Common]
seek_out [Common]
segv [Signal]
Invalid memory reference
select [Core_unix]
Setting restart to true means that we want select to restart automatically on EINTR (instead of propagating the exception)...
select [Core_thread]
Suspend the execution of the calling thead until input/output becomes possible on the given Unix file descriptors.
self [Core_thread]
Return the thread currently executing.
send [Signal]
send signal ~pid sends signal to the process whose process id is pid.
send [Core_unix]
Send data over an unconnected socket.
send_exn [Signal]
send_exn signal ~pid sends signal to the process whose process id is * pid.
send_i [Signal]
send_i signal ~pid sends signal to the process whose process id is pid.
send_no_sigpipe [Linux_ext]
send_no_sigpipe sock ?pos ?len buf tries to do a blocking send on socket sock given buffer buf, offset pos and length len.
send_nonblocking_no_sigpipe [Linux_ext]
send_nonblocking_no_sigpipe sock ?pos ?len buf tries to do a nonblocking send on socket sock given buffer buf, offset pos and length len.
send_nonblocking_no_sigpipe [Bigstring]
send_nonblocking_no_sigpipe sock ?pos ?len bstr tries to send len bytes in bigstring bstr starting at position pos to socket sock.
sendfile [Linux_ext]
sendfile ?pos ?len ~fd sock sends mmap-able data from file descriptor fd to socket sock using offset pos and length len.
sendmsg_nonblocking_no_sigpipe [Linux_ext]
sendmsg_nonblocking_no_sigpipe sock ?count iovecs tries to do a nonblocking send on socket sock using count I/O-vectors iovecs.
sendmsg_nonblocking_no_sigpipe [Bigstring]
sendmsg_nonblocking_no_sigpipe sock ?count iovecs sends count iovecs of bigstrings to socket sock.
sendto [Core_unix]
Send data over an unconnected socket.
sendto_nonblocking_no_sigpipe [Bigstring]
sendto_nonblocking_no_sigpipe sock ?pos ?len bstr sockaddr tries to send len bytes in bigstring bstr starting at position pos to socket sock using address addr.
sep [Month]
set [Signal]
set t b is ignore (signal t b)
set [Set_once]
set [Dequeue]
set [Core_unix.Scheduler]
set [Core_unix.RLimit]
set [Core_string]
set [Core_gc]
set r changes the GC parameters according to the control record r.
set [Core_array]
Array.set a n x modifies array a in place, replacing element number n with x.
set_binary_mode [Out_channel]
set_binary_mode [In_channel]
set_close_on_exec [Core_unix]
Set the ``close-on-exec'' flag on the given descriptor.
set_exn [Set_once]
set_in_channel_timeout [Core_unix]
Set a timeout for a socket associated with an in_channel
set_nonblock [Core_unix]
Set the ``non-blocking'' flag on the given descriptor.
set_out_channel_timeout [Core_unix]
Set a timeout for a socket associated with an out_channel
set_time [Linux_ext.Clock]
setgid [Core_unix]
Set the real group id and effective group id for the process.
setitimer [Core_unix]
setitimer t s sets the interval timer t and returns its previous status.
setpwent [Core_unix.Passwd]
setsid [Core_unix.Terminal_io]
Put the calling process in a new session and detach it from its controlling terminal.
setsockopt [Core_unix]
Set or clear a boolean-valued option in the given socket.
setsockopt_float [Core_unix]
Same as UnixLabels.setsockopt for a socket option whose value is a floating-point number.
setsockopt_int [Core_unix]
Same as UnixLabels.setsockopt for an integer-valued socket option.
setsockopt_optint [Core_unix]
Same as UnixLabels.setsockopt for a socket option whose value is an int option.
settcpopt_bool [Linux_ext]
settcpopt_bool sock opt v sets the current value of the boolean TCP socket option opt for socket sock to value v.
setuid [Core_unix]
Sets the real user id and effective user id for the process.
sexp_of_array [Std_internal]
sexp_of_bool [Std_internal]
sexp_of_char [Std_internal]
sexp_of_decimal [Common]
sexp_of_elt [Algebraic_group.S]
sexp_of_error [Core_unix]
sexp_of_exn [Std_internal]
sexp_of_file_kind [Core_unix]
sexp_of_file_perm [Core_unix]
sexp_of_float [Std_internal]
sexp_of_immutable [Common]
sexp_of_inet_addr [Core_unix]
sexp_of_int [Std_internal]
sexp_of_int32 [Std_internal]
sexp_of_int64 [Std_internal]
sexp_of_int_style [Int_conversions]
sexp_of_limit [Core_unix.RLimit]
sexp_of_list [Std_internal]
sexp_of_nativeint [Std_internal]
sexp_of_option [Std_internal]
sexp_of_poly_t [Interval_intf.S.Set]
sexp_of_poly_t [Interval_intf.S]
sexp_of_read_only [Common]
sexp_of_read_write [Common]
sexp_of_resource [Core_unix.RLimit]
sexp_of_setattr_when [Terminal_io_intf.Types]
sexp_of_sockaddr [Core_unix]
sexp_of_socket_domain [Core_unix]
sexp_of_socket_type [Core_unix]
sexp_of_stats [Core_unix]
sexp_of_string [Std_internal]
sexp_of_sys_behavior [Signal]
sexp_of_sysinfo [Linux_ext]
sexp_of_t [Terminal_io_intf.Types]
sexp_of_t [Zone]
sexp_of_t [Squeue]
sexp_of_t [Span.Parts]
sexp_of_t [Sexpable.S3]
sexp_of_t [Sexpable.S2]
sexp_of_t [Sexpable.S1]
sexp_of_t [Sexpable.Of_stringable]
sexp_of_t [Interval_intf.S1.Set]
sexp_of_t [Interval_intf.S1]
sexp_of_t [Interval_intf.S.Set]
sexp_of_t [Interval_intf.S]
sexp_of_t [Sexpable.S]
sexp_of_t [Int_conversions.Make]
sexp_of_t [Fqueue]
sexp_of_t [Force_once]
sexp_of_t [Float_intf.S.Sign]
sexp_of_t [Exn]
sexp_of_t [Error_check.ReportAllFails]
sexp_of_t [Error_check.Step]
sexp_of_t [Error_check.Timer]
sexp_of_t [Error_check.ToggleN]
sexp_of_t [Error_check.Toggle]
sexp_of_t [Doubly_linked.Elt]
sexp_of_t [Core_unix.Mman.Mcl_flags]
sexp_of_t [Core_unix.Scheduler.Policy]
sexp_of_t [Core_unix.RLimit]
sexp_of_t [Core_unix.Group]
sexp_of_t [Core_unix.Process_status]
sexp_of_t [Core_unix.File_descr]
sexp_of_t [Core_list.Assoc]
sexp_of_t [Bucket.Make]
sexp_of_t [Bag.Elt]
sexp_of_t [Bag]
sexp_of_t_mode [Month]
sexp_of_tcp_bool_option [Linux_ext]
sexp_of_tm [Core_unix]
sexp_of_write_only [Common]
sg [Quickcheck]
string generator
shift [Weekday]
shift t i goes forward (or backward) the specified number of weekdays
shift [Month]
shift t i goes forward (or backward) the specified number of months
shift_epoch_time [Zone]
shift_left [Int_intf.S]
shift_right [Int_intf.S]
shift_right_logical [Int_intf.S]
shutdown [Core_unix]
Shutdown a socket connection.
shutdown_connection [Core_unix]
``Shut down'' a connection established with UnixLabels.open_connection; that is, transmit an end-of-file condition to the server reading on the other side of the connection.
sigmask [Core_thread]
sigmask cmd sigs changes the set of blocked signals for the calling thread.
sign [Float_intf.S]
signal [Signal]
signal t Set the behavior of the system on receipt of a given signal.
signal [Core_condition]
sigpending [Signal]
sigpending () returns the set of blocked signals that are currently * pending.
sigprocmask [Signal]
sigprocmask cmd sigs changes the set of blocked signals.
sigsuspend [Signal]
sigsuspend sigs atomically sets the blocked signals to sigs and waits for * a non-ignored, non-blocked signal to be delivered.
single_write [Core_unix]
Same as write but ensures that all errors are reported and that no character has ever been written when an error is reported.
singleton [Core_set_intf.S1]
singleton [Core_set_intf.Gen.S]
singleton [Core_map_intf.S2]
singleton [Core_map_intf.Gen.S]
singleton [Core_set_intf.S]
singleton [Core_map_intf.S]
size [Timer]
size timer returns the number of events in a timer's heap.
skip [Bigstring_marshal]
skip ?pos buf skips the marshalled data starting at position pos.
sleep [Core_unix]
Stop execution for the given number of seconds.
slice [Ordered_collection_common]
slice [Core_string]
slice s start stop gets a slice of s between start and stop.
slice [Core_list]
slice l start stop returns a new list including elements l.(start) through l.(stop-1), normalized python-style.
slice [Core_array]
slice array start stop returns a fresh array including elements array.(start) through array.(stop-1) with the small tweak that the start and stop positions are normalized and a stop index of 0 means the same thing a stop index of Array.length array.
small_diff [Ofday]
snd3 [Common]
sockaddr_of_sexp [Core_unix]
socket [Core_unix]
Create a new socket in the given domain, and with the given kind.
socket_domain_of_sexp [Core_unix]
socket_type_of_sexp [Core_unix]
socketpair [Core_unix]
Create a pair of unnamed sockets, connected together.
some [Option]
some_elt [Bag]
sort [Core_list]
Sort a list in increasing order according to a comparison function.
sort [Core_array]
sort_and_align [Core_arg]
sorted_copy [Core_array]
sorted_copy ar cmp returns a shallow copy of ar that is sorted.
split [Core_string]
split s ~on
split [Core_set_intf.S1]
split [Core_set_intf.Gen.S]
split [Core_list]
Transform a list of pairs into a pair of lists: split [(a1,b1); ...; (an,bn)] is ([a1; ...; an], [b1; ...; bn]).
split [Core_filename]
split filename returns (dirname filename, basename filename)
split [Core_array]
split ar splits an array of pairs into two arrays of single elements.
split [Core_set_intf.S]
split_extension [Core_filename]
split_extension fn return the portion of the filename before the extension and the (optional) extension
split_n [Core_list]
split_n n [e1; ...; em] is ([e1; ...; en], [en+1; ...; em]).
split_on_chars [Core_string]
split_on_chars s ~on
sprintf [Core_printf]
stable_dedup [Core_list]
stable_dedup Same as dedup but maintains the order of the list and doesn't allow compare function to be specified (uses set membership).
stable_sort [Core_list]
Same as sort, but guaranteed to be stable
stable_sort [Core_array]
start_of_day [Ofday]
stat [Core_unix.Native_file]
Return the information for the named file.
stat [Core_unix]
Return the information for the named file.
stat [Core_gc]
Return the current values of the memory management counters in a stat record.
state [Error_check.ReportAllFails]
state [Error_check.Step]
state [Error_check.Timer]
state [Error_check.ToggleN]
state [Error_check.Toggle]
stats_of_sexp [Core_unix]
stderr [Out_channel]
stderr [Core_unix]
File descriptor for standard standard error.
stdin [In_channel]
stdin [Core_unix]
File descriptor for standard input.
stdout [Out_channel]
stdout [Core_unix]
File descriptor for standard output.
stime [Core_unix.Resource_usage]
stop [Signal]
Stop
strftime [Core_unix]
Convert a date and time, specified by the tm argument, into a formatted string.
strict_add [Hash_set]
strict_remove [Hash_set]
string_bigstring [Make_substring.Blit]
string_kind [Core_unix.IOVec]
string_of_inet_addr [Core_unix]
Return the printable representation of the given Internet address.
string_of_sexp [Std_internal]
string_string [Make_substring.Blit]
strip [Core_string]
strip s returns a string with consecutive white space (tabs, spaces, newlines, and carriage returns) stripped from the beginning and end of s.
sub [Time_internal.T]
sub [Time]
sub t s subtracts the span s from time t and returns the resulting time.
sub [Span]
sub [Ofday]
sub [Float_intf.S]
sub [Core_string]
sub [Core_list]
sub pos len l is the len-element sublist of l, starting at pos.
sub [Core_array]
Array.sub a start len returns a fresh array of length len, containing the elements number start to start + len - 1 of array a.
sub [Bigstring]
sub ?pos ?len bstr
sub [Bigbuffer]
Bigbuffer.sub b off len returns (a copy of) the substring of the current contents of the buffer b starting at offset off of length len bytes.
sub_shared [Bigstring]
sub_shared ?pos ?len bstr
subset [Core_set_intf.S1]
subset [Core_set_intf.Gen.S]
subset [Core_set_intf.S]
succ [Int_intf.S]
suffix [Substring_intf.S]
suffix [Make_substring.F]
suffix [Core_string]
suffix s n returns the longest suffix of s of length less than or equal to n
sun [Weekday]
swap [Tuple.T2]
swap [Ref]
swap t1 t2 swaps the values in t1 and t2.
swap [Core_array]
swap arr i j swaps the value at index i with that at index j.
swap [Array_permute]
symlink [Core_unix]
symlink source dest creates the file dest as a symbolic link to the file source.
sync [Core_unix]
Synchronize all filesystem buffers with disk.
synchronize [Mutex0]
synchronize [Core_mutex]
sys_behavior_of_sexp [Signal]
Terminate the process
sysconf [Core_unix]
sysinfo [Linux_ext]
sysinfo_of_sexp [Linux_ext]
sysname [Core_unix.Utsname]
system [Core_unix]
Execute the given command, wait until it terminates, and return its termination status.

T
t_of_sexp [Zone]
t_of_sexp [Span.Parts]
t_of_sexp [Sexpable.S3]
t_of_sexp [Sexpable.S2]
t_of_sexp [Sexpable.S1]
t_of_sexp [Sexpable.Of_stringable]
t_of_sexp [Interval_intf.S1.Set]
t_of_sexp [Interval_intf.S1]
t_of_sexp [Interval_intf.S.Set]
t_of_sexp [Interval_intf.S]
t_of_sexp [Sexpable.S]
t_of_sexp [Fqueue]
t_of_sexp [Float_intf.S.Sign]
t_of_sexp [Core_unix.Mman.Mcl_flags]
t_of_sexp [Core_unix.Scheduler.Policy]
t_of_sexp [Core_unix.RLimit]
t_of_sexp [Core_unix.Process_status]
t_of_sexp [Core_list.Assoc]
t_of_sexp [Bucket.Make]
t_of_sexp__ [Core_unix.Scheduler.Policy]
t_of_sexp__ [Core_unix.Process_status]
tail [Linebuf]
Seeks to the end of the file and blocks until another line is available -- this new line is not returned.
take [Core_list]
take l n is fst (split_n n l).
take [Bucket.S]
take [Bucket.Make]
take_at_most [Bucket.S]
take_at_most [Bucket.Make]
take_back [Dequeue]
take_front [Dequeue]
take_while [Core_list]
take_while l ~f returns the longest prefix of l for which f is true.
tcdrain [Core_unix.Terminal_io]
Waits until all output written on the given file descriptor has been transmitted.
tcflow [Core_unix.Terminal_io]
Suspend or restart reception or transmission of data on the given file descriptor, depending on the second argument: TCOOFF suspends output, TCOON restarts output, TCIOFF transmits a STOP character to suspend input, and TCION transmits a START character to restart input.
tcflush [Core_unix.Terminal_io]
Discard data written on the given file descriptor but not yet transmitted, or data received but not yet read, depending on the second argument: TCIFLUSH flushes data received but not read, TCOFLUSH flushes data written but not transmitted, and TCIOFLUSH flushes both.
tcgetattr [Core_unix.Terminal_io]
Return the status of the terminal referred to by the given file descriptor.
tcp_bool_option_of_sexp [Linux_ext]
tcsendbreak [Core_unix.Terminal_io]
Send a break condition on the given file descriptor.
tcsetattr [Core_unix.Terminal_io]
Set the status of the terminal referred to by the given file descriptor.
temp_dir [Core_filename]
Same as temp_file but creates a temporary directory.
temp_dir_name [Core_filename]
The name of the temporary directory: Under Unix, the value of the TMPDIR environment variable, or "/tmp" if the variable is not set.
temp_file [Core_filename]
term [Signal]
Termination
test [Binary_packing]
test_invariants [Fqueue]
test via asserts whether invariants hold
tg [Quickcheck]
triple generator
threads_have_been_created [Core_thread]
true iff Thread.create has ever been called, even if there is currently only one running thread.
thu [Weekday]
time [Core_unix]
Return the current time since 00:00:00 GMT, Jan.
timedlock [Core_mutex]
timedlock mtx timeout like lock, but takes a timeout parameter.
timedwait [Core_condition]
timedwait cond mtx timeout waits on condition variable cond with mutex mtx until either the condition is signalled, or until timeout expires.
timegm [Core_unix]
Convert a UTC time in a tm record to a time in seconds
times [Core_unix]
Return the execution times of the process.
tl [Core_list]
tl_exn [Core_list]
Return the given list without its first element.
tm_of_sexp [Core_unix]
to_alist [Core_map_intf.S2]
to_alist [Core_map_intf.Gen.S]
creates association list from map.
to_alist [Core_hashtbl_intf.Access_sig.S]
Returns the list of all (key,data) pairs for given hashtable.
to_alist [Core_map_intf.S]
to_array [Hash_queue.Make]
to_array [Core_set_intf.S1]
to_array [Core_set_intf.Gen.S]
to_array [Container.S1_phantom_noclass]
to_array [Container.S1_noclass]
to_array [Container.S0_phantom_noclass]
to_array [Container.S0_noclass]
to_array [Core_set_intf.S]
to_bigstring [Substring_intf.S]
to_bigstring [Make_substring.F]
to_caml_int [Signal]
to_date [Time]
to_date_ofday [Time]
to_day [Span]
to_epoch [Time]
to_epoch t returns the number of seconds since Jan 1, 1970 00:00:00 in UTC
to_filename_string [Time]
to_filename_string t converts t to string with format YYYY-MM-DD_HH-MM-SS.mmm which is suitable for using in filenames
to_float [Floatable.S]
to_float [Core_int64]
to_hr [Span]
to_int [Weekday]
to_int t returns an int in 0,1,...6.
to_int [Month]
to_int t returns an int in 1,2,...12.
to_int [Float_intf.S]
to_int [Core_unix.File_descr]
to_int [Core_nativeint]
to_int [Core_int64]
to_int [Core_int63]
to_int [Core_int32]
to_int [Core_int]
to_int [Core_char]
Return the ASCII code of the argument.
to_int32 [Core_nativeint]
to_int32 [Core_int64]
to_int32 [Core_int32]
to_int32 [Core_int]
to_int32_exn [Int_intf.S]
to_int32_exn [Core_nativeint]
to_int64 [Int_intf.S]
to_int64 [Float_intf.S]
to_int_exn [Intable.S]
to_int_exn [Core_nativeint]
to_list [Hash_set]
to_list [Hash_queue.Make]
to_list [Fqueue]
to_list t returns a list of the elements in t in order from least-recently-added (at the head) to most-recently added (at the tail).
to_list [Core_set_intf.S1]
to_list [Core_set_intf.Gen.S]
to_list [Core_queue]
to_list [Container.S1_phantom_noclass]
to_list [Container.S1_noclass]
to_list [Container.S0_phantom_noclass]
to_list [Container.S0_noclass]
to_list [Core_set_intf.S]
to_list_rev [Core_string]
Returns the reversed list of characters contained in a list.
to_local_date [Time]
to_local_date_ofday [Time]
to_local_ofday [Time]
to_localized_string [Time]
to_localized_string time zone returns a string representation of time in the given zone in the form like "2008-11-18 15:34:56.123".
to_millisec_string [Ofday]
with milliseconds
to_min [Span]
to_ms [Span]
to_nativeint [Core_nativeint]
to_nativeint [Core_int64]
to_nativeint [Core_int32]
to_nativeint [Core_int]
to_nativeint_exn [Int_intf.S]
to_ns [Span]
to_ofday [Time]
to_parts [Span]
to_parts [Ofday]
to_poly [Interval_intf.S.Set]
to_poly [Interval_intf.S]
to_sec [Span]
to_sec [Ofday]
since midnight
to_sec_string [Time]
to_sec_string t Same as to_string, but without milliseconds
to_sec_string [Ofday]
trailing milliseconds are trimmed
to_span_since_start_of_day [Ofday]
to_string [Span]
to_string [Signal]
to_string t returns a human-readable name: "sigabrt", "sigalrm", ...
to_string [Sexpable.To_stringable]
to_string [Substring_intf.S]
to_string [Make_substring.F]
to_string [Int_set]
to_string [Stringable.S]
to_string [Exn]
to_string [Core_unix.File_descr]
to_string [Core_printexc]
to_string [Core_list]
to_string [Core_char]
to_string [Core_bin_prot.Writer]
to_string [Bigstring]
to_string ?pos ?len bstr
to_string_abs [Time]
to_string_abs t returns a string that represents an absolute time, rather than a local time with an assumed time zone.
to_string_deprecated [Time]
to_string_deprecated returns a string in the old format
to_string_fix_proto [Time]
to_string_hum [Int_intf.S]
to_string_hum [Int_conversions.Make]
to_string_hum [Core_unix.Process_status]
to_string_iso8601_basic [Date]
to_string_iso8601_extended [Date]
to_string_old [Date]
to_string_trimmed [Time]
to_string_trimmed t Same as to_string, but removes trailing seconds and milliseconds if they are 0
to_string_trimmed [Ofday]
trailing seconds and subseconds are trimmed off if they are 0
to_system_int [Signal]
to_tm [Time_internal]
to_tm_utc [Time_internal]
to_us [Span]
to_utc_offset [Zone]
to_utc_offset returns the UTC offset of timezone t, in seconds
today [Date]
top [Heap]
top heap
top [Hash_heap.S]
top [Hash_heap.Make]
top [Fqueue]
like top_exn, but returns result optionally, without exception
top [Core_stack]
top t returns None if t is empty, otherwise it returns Some x where x is the top of t.
top_exn [Heap]
top_exn heap
top_exn [Hash_heap.S]
top_exn [Hash_heap.Make]
top_exn [Fqueue]
Like bot_exn, except returns top (least-recently enqueued element
top_exn [Core_stack]
top_exn t returns the top element of t, raising Empty if t is empty.
top_heap_el [Heap]
top_heap_el heap
top_heap_el_exn [Heap]
top_heap_el_exn heap
top_with_key [Hash_heap.S]
top_with_key [Hash_heap.Make]
top_with_key_exn [Hash_heap.S]
top_with_key_exn [Hash_heap.Make]
tr [Core_string]
tr target replacement s replaces every instance of target in s with replacement.
tr_inplace [Core_string]
tr_inplace target replacement s destructively modifies s (in place!) replacing every instance of target in s with replacement.
transfer [Doubly_linked]
transfer ~src ~dst has the same behavior as iter src ~f:(insert_last dst); clear src except that it runs in constant time.
transfer [Core_queue]
transfer ~src ~dst adds all of the elements of src to the end of dst, then clears src.
transfer_queue [Squeue]
Transfers all elements from the squeue to an ordinary queue.
transfer_queue_in [Squeue]
Transfers all the elements from an ordinary queue into the squeue.
transfer_queue_in_uncond [Squeue]
transfer_queue_nowait [Squeue]
Transfers all elements from the squeue to an ordinary queue.
trd3 [Common]
true_ [Blang]
truncate [Core_unix.Native_file]
truncate [Core_unix]
Truncates the named file to the given size.
truncate [Common]
try_lock [Core_mutex]
try_lock mtx like lock, but returns immediately with false if the mutex is already being held by another thread, or acquires the mutex and returns true otherwise.
try_lock [Agnostic_mutex]
try_read [Linebuf]
Tries to read a line from the file.
try_read_lnum [Linebuf]
try_read_lnum is like try_read except also provides the line number of the read line.
try_read_lnum_verbose [Linebuf]
Like try_read, except that it returns more verbose errors
try_with [Result]
try_with [Option]
try_with f returns Some x if f returns x and None if f raises an exception.
tstp [Signal]
Interactive stop
ttin [Signal]
Terminal read from background process
ttou [Signal]
Terminal write from background process
tue [Weekday]
tune [Core_gc]
Adjust the specified GC parameters.

U
ubound [Interval_intf.GenSet.S]
ubound [Interval_intf.Gen.S]
ubound_exn [Interval_intf.GenSet.S]
ubound_exn [Interval_intf.Gen.S]
uig [Quickcheck]
unsigned int generator (uniform random in range min_int, max_int)
umask [Core_unix]
Set the process creation mask, and return the previous mask.
uname [Core_unix]
uncapitalize [Core_string]
uncurry [Tuple.T3]
uncurry [Tuple.T2]
union [Core_set_intf.S1]
union [Core_set_intf.Gen.S]
union [Core_set_intf.S]
union_list [Core_set_intf.S1]
union_list [Core_set_intf.Gen.S]
union_list [Core_set_intf.S]
unit [Memo]
Returns memoized version of any function with argument unit.
unix_error [Core_unix]
unlink [Core_unix]
Removes the named file
unlock [Lock_file.Nfs]
unlock path unlocks a file locked by some version of lock.
unlock [Core_mutex]
unlock mtx unlocks mtx.
unlock [Agnostic_mutex]
unmarshal [Bigstring_marshal]
unmarshal ?pos buf unmarshals data contained in buf starting at position pos.
unmarshal_from_sock [Bigstring_marshal]
unmarshal_from_sock ?buf sock unmarshals data from socket sock using unmarshalling buffer buf.
unmarshal_next [Bigstring_marshal]
unmarshal_next ?pos buf unmarshals data contained in buf starting at position pos.
unordered_append [Core_list]
unpack_float [Binary_packing]
unpack_signed_16 [Binary_packing]
unpack_signed_32 [Binary_packing]
unpack_signed_32_int [Binary_packing]
unpack_signed_64 [Binary_packing]
unpack_signed_64_int [Binary_packing]
unpack_signed_8 [Binary_packing]
unpack_unsigned_8 [Binary_packing]
unsafe_blit [Bigstring]
unsafe_blit ~src ~src_pos ~dst ~dst_pos ~len similar to Bigstring.blit, but does not perform any bounds checks.
unsafe_blit_bigstring_string [Bigstring]
unsafe_blit_bigstring_string ~src ~src_pos ~dst ~dst_pos ~len similar to Bigstring.blit_bigstring_string, but does not perform any bounds checks.
unsafe_blit_string_bigstring [Bigstring]
unsafe_blit_string_bigstring ~src ~src_pos ~dst ~dst_pos ~len similar to Bigstring.blit_string_bigstring, but does not perform any bounds checks.
unsafe_destroy [Bigstring]
unsafe_destroy bstr destroys the bigstring by deallocating its associated data or, if memory-mapped, unmapping the corresponding file, and setting all dimensions to zero.
unsafe_get [Core_array]
Unsafe version of get.
unsafe_input [Bigstring]
unsafe_input ~min_len ic ~pos ~len bstr similar to Bigstring.input, but does not perform any bounds checks.
unsafe_of_int [Core_char]
unsafe_output [Bigstring]
unsafe_output ~min_len oc ~pos ~len bstr similar to Bigstring.output, but does not perform any bounds checks.
unsafe_read [Bigstring]
unsafe_read ~min_len fd ~pos ~len bstr similar to Bigstring.read, but does not perform any bounds checks.
unsafe_read_assume_fd_is_nonblocking [Bigstring]
unsafe_read_assume_fd_is_nonblocking fd ~pos ~len bstr similar to Bigstring.read_assume_fd_is_nonblocking, but does not perform any bounds checks.
unsafe_really_recv [Bigstring]
unsafe_really_recv sock ~pos ~len bstr similar to Bigstring.really_recv, but does not perform any bounds checks.
unsafe_really_send_no_sigpipe [Bigstring]
unsafe_really_send_no_sigpipe sock ~pos ~len bstr similar to Bigstring.send, but does not perform any bounds checks.
unsafe_really_write [Bigstring]
unsafe_really_write fd ~pos ~len bstr similar to Bigstring.write, but does not perform any bounds checks.
unsafe_send_nonblocking_no_sigpipe [Bigstring]
unsafe_send_nonblocking_no_sigpipe sock ~pos ~len bstr similar to Bigstring.send_nonblocking_no_sigpipe, but does not perform any bounds checks.
unsafe_sendmsg_nonblocking_no_sigpipe [Bigstring]
unsafe_sendmsg_nonblocking_no_sigpipe fd iovecs count similar to Bigstring.sendmsg_nonblocking_no_sigpipe, but does not perform any bounds checks.
unsafe_set [Core_array]
Unsafe version of set.
unsafe_tail [Linebuf]
unsafe_write [Bigstring]
unsafe_write fd ~pos ~len bstr similar to Bigstring.write, but does not perform any bounds checks.
unsafe_write_assume_fd_is_nonblocking [Bigstring]
unsafe_write_assume_fd_is_nonblocking fd ~pos ~len bstr similar to Bigstring.write_assume_fd_is_nonblocking, but does not perform any bounds checks.
unsafe_writev [Bigstring]
unsafe_writev fd iovecs count similar to Bigstring.writev, but does not perform any bounds checks.
unsetenv [Core_unix]
unsetenv name deletes the variable name from the environment.
until_empty [Core_stack]
until_empty t f repeatedly pops an element v off of t and runs f v until t becomes empty.
until_empty [Bag]
until_empty t f repeatedly removes a value v from t and runs f v, continuing until t is empty.
update [Heap]
update heap_el el updates heap_el with element el in its associated heap.
update_broadcast [Mutex0]
update_broadcast [Core_mutex]
update_broadcast mtx cnd ~f updates some state within a critical section protected by mutex mtx using function f and broadcasts condition variable cnd after finishing.
update_signal [Mutex0]
update_signal [Core_mutex]
update_signal mtx cnd ~f updates some state within a critical section protected by mutex mtx using function f and signals condition variable cnd after finishing.
uppercase [Core_string]
uppercase [Core_char]
Convert the given character to its equivalent uppercase character.
usage [Core_arg]
use_new_string_and_sexp_formats [Time]
If this is ever called then all future calls to to_string and sexp_of_t will produce a new format sexp/string that includes enough offset information to reproduce the correct Time.t when of_string/t_of_sexp is called, even if they are called on a machine with a different timezone than the writing machine.
usr1 [Signal]
Application-defined signal 1
usr2 [Signal]
Application-defined signal 2
utc [Zone]
utc the UTC time zone.
utime [Core_unix.Resource_usage]
utimes [Core_unix]
Set the last access time (second arg) and last modification time (third arg) for a file.
uw [Common]

V
value [Option]
value None ~default = default value (Some x) ~default = x
value [Doubly_linked.Elt]
value [Bag.Elt]
value_exn [Option]
value_exn (Some x) = x.
value_exn_message [Option]
value_exn_message message (Some x) = x.
value_map [Option]
value_map t ~f ~default is equivalent to value (map t ~f) ~default, except that it is slightly faster since it avoids creating the intermediate option.
values [Blang]
values t forms the list containing every v for which Base v is a subexpression of t
version [Core_unix.Utsname]
volatile_contents [Bigbuffer]
Return the actual underlying bigstring used by this bigbuffer.
vtalrm [Signal]
Timeout in virtual time

W
wait [Core_unix]
Wait until one of the children processes die, and return its pid and termination status.
wait [Core_condition]
wait_not_empty [Squeue]
wait_not_empty sq Waits for something to be available.
wait_pid [Core_thread]
wait_pid p suspends the execution of the calling thread until the Unix process specified by the process identifier p terminates.
wait_read [Core_thread]
See Thread.wait_write.
wait_signal [Core_thread]
wait_signal sigs suspends the execution of the calling thread until the process receives one of the signals specified in the list sigs.
wait_timed_read [Core_thread]
See Thread.wait_timed_write.
wait_timed_write [Core_thread]
Same as Thread.wait_read and Thread.wait_write, but wait for at most the amount of time given as second argument (in seconds).
wait_write [Core_thread]
Suspend the execution of the calling thread until at least one character is available for reading (Thread.wait_read) or one character can be written without blocking (wait_write) on the given Unix file descriptor.
waitpid [Core_unix]
wed [Weekday]
weekdays_between [Date]
with_file [Out_channel]
with_file [In_channel]
with_file ~f fname executes ~f on the open channel from fname, and closes it afterwards.
with_return [With_return]
with_return [Common]
word_size [Word_size]
word_size [Core_sys]
Size of one word on the machine currently executing the Caml program, in bits: 32 or 64.
wordexp [Core_unix]
words [Byte_units]
write [Core_unix]
write fd buff ofs len writes len characters to descriptor fd, taking them from string buff, starting at position ofs in string buff.
write [Bigstring]
write fd ?pos ?len bstr writes len bytes in bigstring bstr starting at position pos to file descriptor fd.
write_assume_fd_is_nonblocking [Core_unix]
write_assume_fd_is_nonblocking fd ?pos ?len buf calls the system call write ASSUMING THAT IT IS NOT GOING TO BLOCK.
write_assume_fd_is_nonblocking [Bigstring]
write_assume_fd_is_nonblocking fd ?pos ?len bstr writes len bytes in bigstring bstr starting at position pos to file descriptor fd without yielding to other OCaml-threads.
write_lines [Out_channel]
write_lines [Common]
write_lines fname lines writes each string in lines (plus a newline) to file fname.
write_only_of_sexp [Common]
write_wrap [Common]
writev [Core_unix]
writev fd ?count iovecs like Core_unix.writev_assume_fd_is_nonblocking, but does not require the descriptor to not block.
writev [Bigstring]
writev fd ?count iovecs writes count iovecs of bigstrings to file descriptor fd.
writev_assume_fd_is_nonblocking [Core_unix]
writev_assume_fd_is_nonblocking fd ?count iovecs calls the system call writev ASSUMING THAT IT IS NOT GOING TO BLOCK using count I/O-vectors iovecs.
writev_assume_fd_is_nonblocking [Bigstring]
writev_assume_fd_is_nonblocking fd ?count iovecs writes count iovecs of bigstrings to file descriptor fd without yielding to other OCaml-threads.

Y
year [Date]
yield [Core_thread]
Re-schedule the calling thread without suspending it.

Z
zero [Span]
zero [Signal]
No-op; can be used to test whether the target process exists and the current process has permission to signal it
zero [Int_intf.S]
zero [Float_intf.S]
zero [Bucket.Contents]
zero [Algebraic_group.S]