Index of values

( * ) [Pervasives]

Integer multiplication.

( ** ) [Pervasives]

Exponentiation.

( *. ) [Pervasives]

Floating-point multiplication.

(!) [Pervasives]

!r returns the current contents of reference r.

(!=) [Pervasives]

Negation of Pervasives.(==).

(&&) [Pervasives]

The boolean 'and'.

(&) [Pervasives]
(+) [Pervasives]

Integer addition.

(+.) [Pervasives]

Floating-point addition.

(-) [Pervasives]

Integer subtraction.

(-.) [Pervasives]

Floating-point subtraction.

(/) [Pervasives]

Integer division.

(/.) [Pervasives]

Floating-point division.

(:=) [Pervasives]

r := a stores the value of a in reference r.

(<) [Pervasives]
(<=) [Pervasives]
(<>) [Pervasives]

Negation of Pervasives.(=).

(=) [Pervasives]

e1 = e2 tests for structural equality of e1 and e2.

(==) [Pervasives]

e1 == e2 tests for physical equality of e1 and e2.

(>) [Pervasives]
(>=) [Pervasives]

Structural ordering functions.

(@) [Pervasives]

List concatenation.

(@@) [Pervasives]

Application operator: g @@ f @@ x is exactly equivalent to g (f (x)).

(^) [Pervasives]

String concatenation.

(^^) [Pervasives]

f1 ^^ f2 catenates format strings f1 and f2.

(asr) [Pervasives]

n asr m shifts n to the right by m bits.

(land) [Pervasives]

Bitwise logical and.

(lor) [Pervasives]

Bitwise logical or.

(lsl) [Pervasives]

n lsl m shifts n to the left by m bits.

(lsr) [Pervasives]

n lsr m shifts n to the right by m bits.

(lxor) [Pervasives]

Bitwise logical exclusive or.

(mod) [Pervasives]

Integer remainder.

(or) [Pervasives]
(|>) [Pervasives]

Reverse-application operator: x |> f |> g is exactly equivalent to g (f (x)).

(||) [Pervasives]

The boolean 'or'.

(~+) [Pervasives]

Unary addition.

(~+.) [Pervasives]

Unary addition.

(~-) [Pervasives]

Unary negation.

(~-.) [Pervasives]

Unary negation.

__FILE__ [Pervasives]

__FILE__ returns the name of the file currently being parsed by the compiler.

__LINE_OF__ [Pervasives]

__LINE__ expr returns a pair (line, expr), where line is the line number at which the expression expr appears in the file currently being parsed by the compiler.

__LINE__ [Pervasives]

__LINE__ returns the line number at which this expression appears in the file currently being parsed by the compiler.

__LOC_OF__ [Pervasives]

__LOC_OF__ expr returns a pair (loc, expr) where loc is the location of expr in the file currently being parsed by the compiler, with the standard error format of OCaml: "File %S, line %d, characters %d-%d".

__LOC__ [Pervasives]

__LOC__ returns the location at which this expression appears in the file currently being parsed by the compiler, with the standard error format of OCaml: "File %S, line %d, characters %d-%d".

__MODULE__ [Pervasives]

__MODULE__ returns the module name of the file being parsed by the compiler.

__POS_OF__ [Pervasives]

__POS_OF__ expr returns a pair (loc,expr), where loc is a tuple (file,lnum,cnum,enum) corresponding to the location at which the expression expr appears in the file currently being parsed by the compiler.

__POS__ [Pervasives]

__POS__ returns a tuple (file,lnum,cnum,enum), corresponding to the location at which this expression appears in the file currently being parsed by the compiler.

A
abs [Pervasives]

Return the absolute value of the argument.

abs [Nativeint]

Return the absolute value of its argument.

abs [Int64]

Return the absolute value of its argument.

abs [Int32]

Return the absolute value of its argument.

abs_float [Pervasives]

abs_float f returns the absolute value of f.

abstract_tag [Obj]
acos [Pervasives]

Arc cosine.

adapt_filename [Dynlink]

In bytecode, the identity function.

add [Weak.S]

add t x adds x to t.

add [Set.S]

add x s returns a set containing all elements of s, plus x.

add [Queue]

add x q adds the element x at the end of the queue q.

add [Nativeint]

Addition.

add [MoreLabels.Set.S]
add [MoreLabels.Map.S]
add [MoreLabels.Hashtbl.SeededS]
add [MoreLabels.Hashtbl.S]
add [MoreLabels.Hashtbl]
add [Map.S]

add x y m returns a map containing the same bindings as m, plus a binding of x to y.

add [Int64]

Addition.

add [Int32]

Addition.

add [Hashtbl.SeededS]
add [Hashtbl.S]
add [Hashtbl]

Hashtbl.add tbl x y adds a binding of x to y in table tbl.

add [Complex]

Addition

add_available_units [Dynlink]

Same as Dynlink.add_interfaces, but instead of searching .cmi files to find the unit interfaces, uses the interface digests given for each unit.

add_buffer [Buffer]

add_buffer b1 b2 appends the current contents of buffer b2 at the end of buffer b1.

add_bytes [Buffer]

add_bytes b s appends the byte sequence s at the end of buffer b.

add_channel [Buffer]

add_channel b ic n reads at most n characters from the input channel ic and stores them at the end of buffer b.

add_char [Buffer]

add_char b c appends the character c at the end of buffer b.

add_interfaces [Dynlink]

add_interfaces units path grants dynamically-linked object files access to the compilation units named in list units.

add_offset [Obj]
add_string [Buffer]

add_string b s appends the string s at the end of buffer b.

add_subbytes [Buffer]

add_subbytes b s ofs len takes len characters from offset ofs in byte sequence s and appends them at the end of buffer b.

add_substitute [Buffer]

add_substitute b f s appends the string pattern s at the end of buffer b with substitution.

add_substring [Buffer]

add_substring b s ofs len takes len characters from offset ofs in string s and appends them at the end of buffer b.

add_symbolic_output_item [Format]

add_symbolic_output_item sob itm adds item itm to buffer sob.

add_utf_16be_uchar [Buffer]

add_utf_16be_uchar b u appends the UTF-16BE encoding of u at the end of buffer b.

add_utf_16le_uchar [Buffer]

add_utf_16le_uchar b u appends the UTF-16LE encoding of u at the end of buffer b.

add_utf_8_uchar [Buffer]

add_utf_8_uchar b u appends the UTF-8 encoding of u at the end of buffer b.

align [Arg]

Align the documentation strings by inserting spaces at the first alignment separator (tab or, if tab is not found, space), according to the length of the keyword.

allocated_bytes [Gc]

Return the total number of bytes allocated since the program was started.

allow_only [Dynlink]

allow_only units restricts the compilation units that dynamically-linked units can reference: it forbids all references to units other than those named in the list units.

allow_unsafe_modules [Dynlink]

Govern whether unsafe object files are allowed to be dynamically linked.

always [Event]

always v returns an event that is always ready for synchronization.

append [ListLabels]

Catenate two lists.

append [List]

Concatenate two lists.

append [ArrayLabels]

Array.append v1 v2 returns a fresh array containing the concatenation of the arrays v1 and v2.

append [Array]

Array.append v1 v2 returns a fresh array containing the concatenation of the arrays v1 and v2.

arg [Complex]

Argument.

argv [Sys]

The command line arguments given to the process.

array [Sort]

Sort an array in increasing order according to an ordering predicate.

asin [Pervasives]

Arc sine.

asprintf [Format]

Same as printf above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments.

assoc [ListLabels]

assoc a l returns the value associated with key a in the list of pairs l.

assoc [List]

assoc a l returns the value associated with key a in the list of pairs l.

assoc_opt [ListLabels]

assoc_opt a l returns the value associated with key a in the list of pairs l.

assoc_opt [List]

assoc_opt a l returns the value associated with key a in the list of pairs l.

assq [ListLabels]

Same as List.assoc, but uses physical equality instead of structural equality to compare keys.

assq [List]

Same as List.assoc, but uses physical equality instead of structural equality to compare keys.

assq_opt [ListLabels]

Same as List.assoc_opt, but uses physical equality instead of structural equality to compare keys.

assq_opt [List]

Same as List.assoc_opt, but uses physical equality instead of structural equality to compare keys.

at_exit [Pervasives]

Register the given function to be called at program termination time.

atan [Pervasives]

Arc tangent.

atan2 [Pervasives]

atan2 y x returns the arc tangent of y /. x.

auto_synchronize [Graphics]

By default, drawing takes place both on the window displayed on screen, and in a memory area (the 'backing store').

B
backend_type [Sys]

Backend type currently executing the OCaml program.

background [Graphics]
backtrace_slots [Printexc]

Returns the slots of a raw backtrace, or None if none of them contain useful information.

backtrace_status [Printexc]

Printexc.backtrace_status() returns true if exception backtraces are currently recorded, false if not.

basename [Filename]

Split a file name into directory name / base file name.

beginning_of_input [Scanf.Scanning]

Scanning.beginning_of_input ic tests the beginning of input condition of the given Scanf.Scanning.in_channel formatted input channel.

big_endian [Sys]

Whether the machine currently executing the Caml program is big-endian.

bindings [MoreLabels.Map.S]
bindings [Map.S]

Return the list of all bindings of the given map.

bits [Random.State]
bits [Random]

Return 30 random bits in a nonnegative integer.

bits_of_float [Int64]

Return the internal representation of the given float according to the IEEE 754 floating-point 'double format' bit layout.

bits_of_float [Int32]

Return the internal representation of the given float according to the IEEE 754 floating-point 'single format' bit layout.

black [Graphics]
blit [Weak]

Weak.blit ar1 off1 ar2 off2 len copies len weak pointers from ar1 (starting at off1) to ar2 (starting at off2).

blit [StringLabels]

String.blit src srcoff dst dstoff len copies len bytes from the string src, starting at index srcoff, to byte sequence dst, starting at character number dstoff.

blit [String]
blit [BytesLabels]

blit src srcoff dst dstoff len copies len bytes from sequence src, starting at index srcoff, to sequence dst, starting at index dstoff.

blit [Bytes]

blit src srcoff dst dstoff len copies len bytes from sequence src, starting at index srcoff, to sequence dst, starting at index dstoff.

blit [Buffer]

Buffer.blit src srcoff dst dstoff len copies len characters from the current contents of the buffer src, starting at offset srcoff to dst, starting at character dstoff.

blit [ArrayLabels]

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 [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_data [Obj.Ephemeron]
blit_data [Ephemeron.Kn]
blit_data [Ephemeron.K2]
blit_data [Ephemeron.K1]

Ephemeron.K1.blit_data eph1 eph2 sets the data of eph2 with the data of eph1.

blit_image [Graphics]

blit_image img x y copies screen pixels into the image img, modifying img in-place.

blit_key [Obj.Ephemeron]
blit_key [Ephemeron.Kn]
blit_key [Ephemeron.K1]

Ephemeron.K1.blit_key eph1 eph2 sets the key of eph2 with the key of eph1.

blit_key1 [Ephemeron.K2]
blit_key12 [Ephemeron.K2]
blit_key2 [Ephemeron.K2]
blit_string [BytesLabels]

blit src srcoff dst dstoff len copies len bytes from string src, starting at index srcoff, to byte sequence dst, starting at index dstoff.

blit_string [Bytes]

blit src srcoff dst dstoff len copies len bytes from string src, starting at index srcoff, to byte sequence dst, starting at index dstoff.

blue [Graphics]
bom [Uchar]

bom is U+FEFF, the byte order mark (BOM) character.

bool [Random.State]

These functions are the same as the basic functions, except that they use (and update) the given PRNG state instead of the default one.

bool [Random]

Random.bool () returns true or false with probability 0.5 each.

bool_of_string [Pervasives]

Convert the given string to a boolean.

bool_of_string_opt [Pervasives]

Convert the given string to a boolean.

bounded_full_split [Str]

Same as Str.bounded_split_delim, but returns the delimiters as well as the substrings contained between delimiters.

bounded_split [Str]

Same as Str.split, but splits into at most n substrings, where n is the extra integer parameter.

bounded_split_delim [Str]

Same as Str.bounded_split, but occurrences of the delimiter at the beginning and at the end of the string are recognized and returned as empty strings in the result.

bprintf [Printf]

Same as Printf.fprintf, but instead of printing on an output channel, append the formatted arguments to the given extensible buffer (see module Buffer).

bprintf [Format]
bscanf [Scanf]
bscanf_format [Scanf]

bscanf_format ic fmt f reads a format string token from the formatted input channel ic, according to the given format string fmt, and applies f to the resulting format string value.

button_down [Graphics]

Return true if the mouse button is pressed, false otherwise.

bytes [Digest]

Return the digest of the given byte sequence.

C
capitalize [StringLabels]

Return a copy of the argument, with the first character set to uppercase, using the ISO Latin-1 (8859-1) character set..

capitalize [String]

Return a copy of the argument, with the first character set to uppercase, using the ISO Latin-1 (8859-1) character set..

capitalize [BytesLabels]

Return a copy of the argument, with the first character set to uppercase, using the ISO Latin-1 (8859-1) character set..

capitalize [Bytes]

Return a copy of the argument, with the first character set to uppercase, using the ISO Latin-1 (8859-1) character set..

capitalize_ascii [StringLabels]

Return a copy of the argument, with the first character set to uppercase, using the US-ASCII character set.

capitalize_ascii [String]

Return a copy of the argument, with the first character set to uppercase, using the US-ASCII character set.

capitalize_ascii [BytesLabels]

Return a copy of the argument, with the first character set to uppercase, using the US-ASCII character set.

capitalize_ascii [Bytes]

Return a copy of the argument, with the first character set to uppercase, using the US-ASCII character set.

cardinal [Set.S]

Return the number of elements of a set.

cardinal [MoreLabels.Set.S]
cardinal [MoreLabels.Map.S]
cardinal [Map.S]

Return the number of bindings of a map.

cat [BytesLabels]

cat s1 s2 concatenates s1 and s2 and returns the result as new byte sequence.

cat [Bytes]

cat s1 s2 concatenates s1 and s2 and returns the result as new byte sequence.

catch [Printexc]

Printexc.catch fn x is similar to Printexc.print, but aborts the program with exit code 2 after printing the uncaught exception.

catch_break [Sys]

catch_break governs whether interactive interrupt (ctrl-C) terminates the program or raises the Break exception.

ceil [Pervasives]

Round above to an integer value.

channel [Digest]

If len is nonnegative, Digest.channel ic len reads len characters from channel ic and returns their digest, or raises End_of_file if end-of-file is reached before len characters are read.

char_of_int [Pervasives]

Return the character with the given ASCII code.

chdir [Sys]

Change the current working directory of the process.

check [Weak]

Weak.check ar n returns true if the nth cell of ar is full, false if it is empty.

check_data [Obj.Ephemeron]
check_data [Ephemeron.Kn]
check_data [Ephemeron.K2]
check_data [Ephemeron.K1]

Ephemeron.K1.check_data eph returns true if the data of the eph is full, false if it is empty.

check_key [Obj.Ephemeron]
check_key [Ephemeron.Kn]
check_key [Ephemeron.K1]

Ephemeron.K1.check_key eph returns true if the key of the eph is full, false if it is empty.

check_key1 [Ephemeron.K2]
check_key2 [Ephemeron.K2]
check_suffix [Filename]

check_suffix name suff returns true if the filename name ends with the suffix suff.

choose [Set.S]

Return one element of the given set, or raise Not_found if the set is empty.

choose [MoreLabels.Set.S]
choose [MoreLabels.Map.S]
choose [Map.S]

Return one binding of the given map, or raise Not_found if the map is empty.

choose [Event]

choose evl returns the event that is the alternative of all the events in the list evl.

choose_opt [Set.S]

Return one element of the given set, or None if the set is empty.

choose_opt [MoreLabels.Set.S]
choose_opt [MoreLabels.Map.S]
choose_opt [Map.S]

Return one binding of the given map, or None if the map is empty.

chop_extension [Filename]

Same as Filename.remove_extension, but raise Invalid_argument if the given name has an empty extension.

chop_suffix [Filename]

chop_suffix name suff removes the suffix suff from the filename name.

chr [Char]

Return the character with the given ASCII code.

classify_float [Pervasives]

Return the class of the given floating-point number: normal, subnormal, zero, infinite, or not a number.

clean [Ephemeron.SeededS]

remove all dead bindings.

clean [Ephemeron.S]

remove all dead bindings.

clear [Weak.S]

Remove all elements from the table.

clear [Stack]

Discard all elements from a stack.

clear [Queue]

Discard all elements from a queue.

clear [MoreLabels.Hashtbl.SeededS]
clear [MoreLabels.Hashtbl.S]
clear [MoreLabels.Hashtbl]
clear [Hashtbl.SeededS]
clear [Hashtbl.S]
clear [Hashtbl]

Empty a hash table.

clear [Buffer]

Empty the buffer.

clear_available_units [Dynlink]

Empty the list of compilation units accessible to dynamically-linked programs.

clear_graph [Graphics]

Erase the graphics window.

clear_parser [Parsing]

Empty the parser stack.

clear_symbolic_output_buffer [Format]

clear_symbolic_output_buffer sob resets buffer sob.

close_box [Format]

Closes the most recently open pretty-printing box.

close_graph [Graphics]

Delete the graphics window or switch the screen back to text mode.

close_in [Scanf.Scanning]

Closes the Pervasives.in_channel associated with the given Scanf.Scanning.in_channel formatted input channel.

close_in [Pervasives]

Close the given channel.

close_in_noerr [Pervasives]

Same as close_in, but ignore all errors.

close_out [Pervasives]

Close the given channel, flushing all buffered write operations.

close_out_noerr [Pervasives]

Same as close_out, but ignore all errors.

close_subwindow [GraphicsX11]

Close the sub-window having the given identifier.

close_tag [Format]

pp_close_tag ppf () closes the most recently opened semantic tag t.

close_tbox [Format]

Closes the most recently opened tabulation box.

closure_tag [Obj]
code [Char]

Return the ASCII code of the argument.

combine [ListLabels]

Transform a pair of lists into a list of pairs: combine [a1; ...; an] [b1; ...; bn] is [(a1,b1); ...; (an,bn)].

combine [List]

Transform a pair of lists into a list of pairs: combine [a1; ...; an] [b1; ...; bn] is [(a1,b1); ...; (an,bn)].

command [Sys]

Execute the given shell command and return its exit code.

compact [Gc]

Perform a full major collection and compact the heap.

compare [Uchar]

compare u u' is Pervasives.compare u u'.

compare [StringLabels]

The comparison function for strings, with the same specification as Pervasives.compare.

compare [String]

The comparison function for strings, with the same specification as Pervasives.compare.

compare [Set.OrderedType]

A total ordering function over the set elements.

compare [Set.S]

Total ordering between sets.

compare [Pervasives]

compare x y returns 0 if x is equal to y, a negative integer if x is less than y, and a positive integer if x is greater than y.

compare [Nativeint]

The comparison function for native integers, with the same specification as Pervasives.compare.

compare [MoreLabels.Set.S]
compare [MoreLabels.Map.S]
compare [Map.OrderedType]

A total ordering function over the keys.

compare [Map.S]

Total ordering between maps.

compare [Int64]

The comparison function for 64-bit integers, with the same specification as Pervasives.compare.

compare [Int32]

The comparison function for 32-bit integers, with the same specification as Pervasives.compare.

compare [Digest]

The comparison function for 16-character digest, with the same specification as Pervasives.compare and the implementation shared with String.compare.

compare [Char]

The comparison function for characters, with the same specification as Pervasives.compare.

compare [BytesLabels]

The comparison function for byte sequences, with the same specification as Pervasives.compare.

compare [Bytes]

The comparison function for byte sequences, with the same specification as Pervasives.compare.

compare_length_with [ListLabels]

Compare the length of a list to an integer.

compare_length_with [List]

Compare the length of a list to an integer.

compare_lengths [ListLabels]

Compare the lengths of two lists.

compare_lengths [List]

Compare the lengths of two lists.

concat [StringLabels]

String.concat sep sl concatenates the list of strings sl, inserting the separator string sep between each.

concat [String]

String.concat sep sl concatenates the list of strings sl, inserting the separator string sep between each.

concat [ListLabels]

Concatenate a list of lists.

concat [List]

Concatenate a list of lists.

concat [Filename]

concat dir file returns a file name that designates file file in directory dir.

concat [BytesLabels]

concat sep sl concatenates the list of byte sequences sl, inserting the separator byte sequence sep between each, and returns the result as a new byte sequence.

concat [Bytes]

concat sep sl concatenates the list of byte sequences sl, inserting the separator byte sequence sep between each, and returns the result as a new byte sequence.

concat [ArrayLabels]

Same as Array.append, but concatenates a list of arrays.

concat [Array]

Same as Array.append, but concatenates a list of arrays.

conj [Complex]

Conjugate: given the complex x + i.y, returns x - i.y.

cons [ListLabels]

cons x xs is x :: xs

cons [List]

cons x xs is x :: xs

contains [StringLabels]

String.contains s c tests if character c appears in the string s.

contains [String]

String.contains s c tests if character c appears in the string s.

contains [BytesLabels]

contains s c tests if byte c appears in s.

contains [Bytes]

contains s c tests if byte c appears in s.

contains_from [StringLabels]

String.contains_from s start c tests if character c appears in s after position start.

contains_from [String]

String.contains_from s start c tests if character c appears in s after position start.

contains_from [BytesLabels]

contains_from s start c tests if byte c appears in s after position start.

contains_from [Bytes]

contains_from s start c tests if byte c appears in s after position start.

contents [Buffer]

Return a copy of the current contents of the buffer.

convert_raw_backtrace_slot [Printexc]

Extracts the user-friendly backtrace_slot from a low-level raw_backtrace_slot.

copy [StringLabels]

Return a copy of the given string.

copy [String]

Return a copy of the given string.

copy [Stack]

Return a copy of the given stack.

copy [Random.State]

Return a copy of the given state.

copy [Queue]

Return a copy of the given queue.

copy [Oo]

Oo.copy o returns a copy of object o, that is a fresh object with the same methods and instance variables as o.

copy [MoreLabels.Hashtbl.SeededS]
copy [MoreLabels.Hashtbl.S]
copy [MoreLabels.Hashtbl]
copy [Hashtbl.SeededS]
copy [Hashtbl.S]
copy [Hashtbl]

Return a copy of the given hashtable.

copy [BytesLabels]

Return a new byte sequence that contains the same bytes as the argument.

copy [Bytes]

Return a new byte sequence that contains the same bytes as the argument.

copy [ArrayLabels]

Array.copy a returns a copy of a, that is, a fresh array containing the same elements as a.

copy [Array]

Array.copy a returns a copy of a, that is, a fresh array containing the same elements as a.

copysign [Pervasives]

copysign x y returns a float whose absolute value is that of x and whose sign is that of y.

cos [Pervasives]

Cosine.

cosh [Pervasives]

Hyperbolic cosine.

count [Weak.S]

Count the number of elements in the table.

count [Stream]

Return the current count of the stream elements, i.e.

counters [Gc]

Return (minor_words, promoted_words, major_words).

create [Weak.S]

create n creates a new empty weak hash set, of initial size n.

create [Weak]

Weak.create n returns a new weak array of length n.

create [StringLabels]

String.create n returns a fresh byte sequence of length n.

create [String]

String.create n returns a fresh byte sequence of length n.

create [Stack]

Return a new stack, initially empty.

create [Spacetime.Series]

create ~path creates a series file at path.

create [Queue]

Return a new queue, initially empty.

create [Obj.Ephemeron]

create n returns an ephemeron with n keys.

create [Mutex]

Return a new mutex.

create [MoreLabels.Hashtbl.SeededS]
create [MoreLabels.Hashtbl.S]
create [MoreLabels.Hashtbl]
create [Hashtbl.SeededS]
create [Hashtbl.S]
create [Hashtbl]

Hashtbl.create n creates a new, empty hash table, with initial size n.

create [Ephemeron.Kn]
create [Ephemeron.K2]
create [Ephemeron.K1]

Ephemeron.K1.create () creates an ephemeron with one key.

create [BytesLabels]

create n returns a new byte sequence of length n.

create [Bytes]

create n returns a new byte sequence of length n.

create [Buffer]

create n returns a fresh buffer, initially empty.

create [ArrayLabels]
create [Array]
create_alarm [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_float [ArrayLabels]

Array.create_float n returns a fresh float array of length n, with uninitialized data.

create_float [Array]

Array.create_float n returns a fresh float array of length n, with uninitialized data.

create_image [Graphics]

create_image w h returns a new image w pixels wide and h pixels tall, to be used in conjunction with blit_image.

create_matrix [ArrayLabels]
create_matrix [Array]
current [Arg]

Position (in Sys.argv) of the argument being processed.

current_dir_name [Filename]

The conventional name for the current directory (e.g.

current_point [Graphics]

Return the position of the current point.

current_x [Graphics]

Return the abscissa of the current point.

current_y [Graphics]

Return the ordinate of the current point.

curveto [Graphics]

curveto b c d draws a cubic Bezier curve starting from the current point to point d, with control points b and c, and moves the current point to d.

custom_tag [Obj]
cyan [Graphics]
cygwin [Sys]

True if Sys.os_type = "Cygwin".

D
data_size [Marshal]
decr [Pervasives]

Decrement the integer contained in the given reference.

default_available_units [Dynlink]

Reset the set of units that can be referenced from dynamically-linked code to its default value, that is, all units composing the currently running program.

delete_alarm [Gc]

delete_alarm a will stop the calls to the function associated to a.

diff [Set.S]

Set difference.

diff [MoreLabels.Set.S]
dir_sep [Filename]

The directory separator (e.g.

dirname [Filename]
display_mode [Graphics]

Set display mode on or off.

div [Nativeint]

Integer division.

div [Int64]

Integer division.

div [Int32]

Integer division.

div [Complex]

Division

double_array_tag [Obj]
double_field [Obj]
double_tag [Obj]
draw_arc [Graphics]

draw_arc x y rx ry a1 a2 draws an elliptical arc with center x,y, horizontal radius rx, vertical radius ry, from angle a1 to angle a2 (in degrees).

draw_char [Graphics]
draw_circle [Graphics]

draw_circle x y r draws a circle with center x,y and radius r.

draw_ellipse [Graphics]

draw_ellipse x y rx ry draws an ellipse with center x,y, horizontal radius rx and vertical radius ry.

draw_image [Graphics]

Draw the given image with lower left corner at the given point.

draw_poly [Graphics]

draw_poly polygon draws the given polygon.

draw_poly_line [Graphics]

draw_poly_line points draws the line that joins the points given by the array argument.

draw_rect [Graphics]

draw_rect x y w h draws the rectangle with lower left corner at x,y, width w and height h.

draw_segments [Graphics]

draw_segments segments draws the segments given in the array argument.

draw_string [Graphics]

Draw a character or a character string with lower left corner at current position.

dummy_pos [Lexing]

A value of type position, guaranteed to be different from any valid position.

dump_image [Graphics]

Convert an image to a color matrix.

dup [Obj]
E
elements [Set.S]

Return the list of all elements of the given set.

elements [MoreLabels.Set.S]
empty [Stream]

Return () if the stream is empty, else raise Stream.Failure.

empty [Set.S]

The empty set.

empty [MoreLabels.Set.S]
empty [MoreLabels.Map.S]
empty [Map.S]

The empty map.

empty [BytesLabels]

A byte sequence of size 0.

empty [Bytes]

A byte sequence of size 0.

enable_runtime_warnings [Sys]

Control whether the OCaml runtime system can emit warnings on stderr.

enabled [Spacetime]

enabled is true if the compiler is configured with spacetime and false otherwise

end_of_input [Scanf.Scanning]

Scanning.end_of_input ic tests the end-of-input condition of the given Scanf.Scanning.in_channel formatted input channel.

eprintf [Printf]

Same as Printf.fprintf, but output on stderr.

eprintf [Format]

Same as fprintf above, but output on err_formatter.

epsilon_float [Pervasives]

The difference between 1.0 and the smallest exactly representable floating-point number greater than 1.0.

equal [Uchar]

equal u u' is u = u'.

equal [StringLabels]

The equal function for strings.

equal [String]

The equal function for strings.

equal [Set.S]

equal s1 s2 tests whether the sets s1 and s2 are equal, that is, contain equal elements.

equal [Nativeint]

The equal function for native ints.

equal [MoreLabels.Set.S]
equal [MoreLabels.Map.S]
equal [Map.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 [Int64]

The equal function for int64s.

equal [Int32]

The equal function for int32s.

equal [Hashtbl.SeededHashedType]

The equality predicate used to compare keys.

equal [Hashtbl.HashedType]

The equality predicate used to compare keys.

equal [Digest]

The equal function for 16-character digest.

equal [Char]

The equal function for chars.

equal [BytesLabels]

The equality function for byte sequences.

equal [Bytes]

The equality function for byte sequences.

err_formatter [Format]

A formatter to write to standard error.

error_message [Dynlink]

Convert an error description to a printable message.

escaped [StringLabels]

Return a copy of the argument, with special characters represented by escape sequences, following the lexical conventions of OCaml.

escaped [String]

Return a copy of the argument, with special characters represented by escape sequences, following the lexical conventions of OCaml.

escaped [Char]

Return a string representing the given character, with special characters escaped following the lexical conventions of OCaml.

escaped [BytesLabels]

Return a copy of the argument, with special characters represented by escape sequences, following the lexical conventions of OCaml.

escaped [Bytes]

Return a copy of the argument, with special characters represented by escape sequences, following the lexical conventions of OCaml.

executable_name [Sys]

The name of the file containing the executable currently running.

exists [Set.S]

exists p s checks if at least one element of the set satisfies the predicate p.

exists [MoreLabels.Set.S]
exists [MoreLabels.Map.S]
exists [Map.S]

exists p m checks if at least one binding of the map satisfies the predicate p.

exists [ListLabels]

exists p [a1; ...; an] checks if at least one element of the list satisfies the predicate p.

exists [List]

exists p [a1; ...; an] checks if at least one element of the list satisfies the predicate p.

exists [ArrayLabels]

Array.exists p [|a1; ...; an|] checks if at least one element of the array satisfies the predicate p.

exists [Array]

Array.exists p [|a1; ...; an|] checks if at least one element of the array satisfies the predicate p.

exists2 [ListLabels]

Same as List.exists, but for a two-argument predicate.

exists2 [List]

Same as List.exists, but for a two-argument predicate.

exit [Pervasives]

Terminate the process, returning the given status code to the operating system: usually 0 to indicate no errors, and a small positive integer to indicate failure.

exn_slot_id [Printexc]

Printexc.exn_slot_id returns an integer which uniquely identifies the constructor used to create the exception value exn (in the current runtime).

exn_slot_name [Printexc]

Printexc.exn_slot_name exn returns the internal name of the constructor used to create the exception value exn.

exp [Pervasives]

Exponential.

exp [Complex]

Exponentiation.

expm1 [Pervasives]

expm1 x computes exp x -. 1.0, giving numerically-accurate results even if x is close to 0.0.

extend [BytesLabels]

extend s left right returns a new byte sequence that contains the bytes of s, with left uninitialized bytes prepended and right uninitialized bytes appended to it.

extend [Bytes]

extend s left right returns a new byte sequence that contains the bytes of s, with left uninitialized bytes prepended and right uninitialized bytes appended to it.

extension [Filename]

extension name is the shortest suffix ext of name0 where:

extension_constructor [Obj]
extension_id [Obj]
extension_name [Obj]
F
failwith [Pervasives]

Raise exception Failure with the given string.

fast_sort [ListLabels]

Same as List.sort or List.stable_sort, whichever is faster on typical input.

fast_sort [List]

Same as List.sort or List.stable_sort, whichever is faster on typical input.

fast_sort [ArrayLabels]

Same as Array.sort or Array.stable_sort, whichever is faster on typical input.

fast_sort [Array]

Same as Array.sort or Array.stable_sort, whichever is faster on typical input.

field [Obj]
file [Digest]

Return the digest of the file whose name is given.

file_exists [Sys]

Test if a file with the given name exists.

fill [Weak]

Weak.fill ar ofs len el sets to el all pointers of ar from ofs to ofs + len - 1.

fill [StringLabels]

String.fill s start len c modifies byte sequence s in place, replacing len bytes by c, starting at start.

fill [String]

String.fill s start len c modifies byte sequence s in place, replacing len bytes with c, starting at start.

fill [BytesLabels]

fill s start len c modifies s in place, replacing len characters with c, starting at start.

fill [Bytes]

fill s start len c modifies s in place, replacing len characters with c, starting at start.

fill [ArrayLabels]

Array.fill a ofs len x modifies the array a in place, storing x in elements number ofs to ofs + len - 1.

fill [Array]

Array.fill a ofs len x modifies the array a in place, storing x in elements number ofs to ofs + len - 1.

fill_arc [Graphics]

Fill an elliptical pie slice with the current color.

fill_circle [Graphics]

Fill a circle with the current color.

fill_ellipse [Graphics]

Fill an ellipse with the current color.

fill_poly [Graphics]

Fill the given polygon with the current color.

fill_rect [Graphics]

fill_rect x y w h fills the rectangle with lower left corner at x,y, width w and height h, with the current color.

filter [Set.S]

filter p s returns the set of all elements in s that satisfy predicate p.

filter [MoreLabels.Set.S]
filter [MoreLabels.Map.S]
filter [Map.S]

filter p m returns the map with all the bindings in m that satisfy predicate p.

filter [ListLabels]

filter p l returns all the elements of the list l that satisfy the predicate p.

filter [List]

filter p l returns all the elements of the list l that satisfy the predicate p.

filter_map_inplace [MoreLabels.Hashtbl.SeededS]
filter_map_inplace [MoreLabels.Hashtbl.S]
filter_map_inplace [MoreLabels.Hashtbl]
filter_map_inplace [Hashtbl.SeededS]
filter_map_inplace [Hashtbl.S]
filter_map_inplace [Hashtbl]

Hashtbl.filter_map_inplace f tbl applies f to all bindings in table tbl and update each binding depending on the result of f.

final_tag [Obj]
finalise [Gc]

finalise f v registers f as a finalisation function for v.

finalise_last [Gc]

same as Gc.finalise except the value is not given as argument.

finalise_release [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 [Weak.S]

find t x returns an instance of x found in t.

find [Set.S]

find x s returns the element of s equal to x (according to Ord.compare), or raise Not_found if no such element exists.

find [MoreLabels.Set.S]
find [MoreLabels.Map.S]
find [MoreLabels.Hashtbl.SeededS]
find [MoreLabels.Hashtbl.S]
find [MoreLabels.Hashtbl]
find [Map.S]

find x m returns the current binding of x in m, or raises Not_found if no such binding exists.

find [ListLabels]

find p l returns the first element of the list l that satisfies the predicate p.

find [List]

find p l returns the first element of the list l that satisfies the predicate p.

find [Hashtbl.SeededS]
find [Hashtbl.S]
find [Hashtbl]

Hashtbl.find tbl x returns the current binding of x in tbl, or raises Not_found if no such binding exists.

find_all [Weak.S]

find_all t x returns a list of all the instances of x found in t.

find_all [MoreLabels.Hashtbl.SeededS]
find_all [MoreLabels.Hashtbl.S]
find_all [MoreLabels.Hashtbl]
find_all [ListLabels]

find_all is another name for List.filter.

find_all [List]

find_all is another name for List.filter.

find_all [Hashtbl.SeededS]
find_all [Hashtbl.S]
find_all [Hashtbl]

Hashtbl.find_all tbl x returns the list of all data associated with x in tbl.

find_first [Set.S]

find_first f s, where f is a monotonically increasing function, returns the lowest element e of s such that f e, or raises Not_found if no such element exists.

find_first [MoreLabels.Set.S]
find_first [MoreLabels.Map.S]
find_first [Map.S]

find_first f m, where f is a monotonically increasing function, returns the binding of m with the lowest key k such that f k, or raises Not_found if no such key exists.

find_first_opt [Set.S]

find_first_opt f s, where f is a monotonically increasing function, returns an option containing the lowest element e of s such that f e, or None if no such element exists.

find_first_opt [MoreLabels.Set.S]
find_first_opt [MoreLabels.Map.S]
find_first_opt [Map.S]

find_first_opt f m, where f is a monotonically increasing function, returns an option containing the binding of m with the lowest key k such that f k, or None if no such key exists.

find_last [Set.S]

find_last f s, where f is a monotonically decreasing function, returns the highest element e of s such that f e, or raises Not_found if no such element exists.

find_last [MoreLabels.Set.S]
find_last [MoreLabels.Map.S]
find_last [Map.S]

find_last f m, where f is a monotonically decreasing function, returns the binding of m with the highest key k such that f k, or raises Not_found if no such key exists.

find_last_opt [Set.S]

find_last_opt f s, where f is a monotonically decreasing function, returns an option containing the highest element e of s such that f e, or None if no such element exists.

find_last_opt [MoreLabels.Set.S]
find_last_opt [MoreLabels.Map.S]
find_last_opt [Map.S]

find_last_opt f m, where f is a monotonically decreasing function, returns an option containing the binding of m with the highest key k such that f k, or None if no such key exists.

find_opt [Weak.S]

find_opt t x returns an instance of x found in t or None if there is no such element.

find_opt [Set.S]

find_opt x s returns the element of s equal to x (according to Ord.compare), or None if no such element exists.

find_opt [MoreLabels.Set.S]
find_opt [MoreLabels.Map.S]
find_opt [MoreLabels.Hashtbl.SeededS]
find_opt [MoreLabels.Hashtbl.S]
find_opt [MoreLabels.Hashtbl]
find_opt [Map.S]

find_opt x m returns Some v if the current binding of x in m is v, or None if no such binding exists.

find_opt [ListLabels]

find p l returns the first element of the list l that satisfies the predicate p.

find_opt [List]

find_opt p l returns the first element of the list l that satisfies the predicate p, or None if there is no value that satisfies p in the list l.

find_opt [Hashtbl.SeededS]
find_opt [Hashtbl.S]
find_opt [Hashtbl]

Hashtbl.find_opt tbl x returns the current binding of x in tbl, or None if no such binding exists.

first_chars [Str]

first_chars s n returns the first n characters of s.

first_non_constant_constructor_tag [Obj]
flatten [ListLabels]

Same as concat.

flatten [List]

An alias for concat.

float [Random.State]
float [Random]

Random.float bound returns a random floating-point number between 0 and bound (inclusive).

float [Pervasives]
float_of_bits [Int64]

Return the floating-point number whose internal representation, according to the IEEE 754 floating-point 'double format' bit layout, is the given int64.

float_of_bits [Int32]

Return the floating-point number whose internal representation, according to the IEEE 754 floating-point 'single format' bit layout, is the given int32.

float_of_int [Pervasives]

Convert an integer to floating-point.

float_of_string [Pervasives]

Convert the given string to a float.

float_of_string_opt [Pervasives]

Same as float_of_string, but returns None instead of raising.

floor [Pervasives]

Round below to an integer value.

flush [Pervasives]

Flush the buffer associated with the given output channel, performing all pending writes on that channel.

flush_all [Pervasives]

Flush all open output channels; ignore errors.

flush_input [Lexing]

Discard the contents of the buffer and reset the current position to 0.

flush_str_formatter [Format]

Returns the material printed with str_formatter, flushes the formatter and resets the corresponding buffer.

flush_symbolic_output_buffer [Format]

flush_symbolic_output_buffer sob returns the contents of buffer sob and resets buffer sob.

fold [Weak.S]

fold f t init computes (f d1 (... (f dN init))) where d1 ... dN are the elements of t in some unspecified order.

fold [Stack]

fold f accu s is (f (... (f (f accu x1) x2) ...) xn) where x1 is the top of the stack, x2 the second element, and xn the bottom element.

fold [Set.S]

fold f s a computes (f xN ... (f x2 (f x1 a))...), where x1 ... xN are the elements of s, in increasing order.

fold [Queue]

fold f accu q is equivalent to List.fold_left f accu l, where l is the list of q's elements.

fold [MoreLabels.Set.S]
fold [MoreLabels.Map.S]
fold [MoreLabels.Hashtbl.SeededS]
fold [MoreLabels.Hashtbl.S]
fold [MoreLabels.Hashtbl]
fold [Map.S]

fold f m a computes (f kN dN ... (f k1 d1 a)...), where k1 ... kN are the keys of all bindings in m (in increasing order), and d1 ... dN are the associated data.

fold [Hashtbl.SeededS]
fold [Hashtbl.S]
fold [Hashtbl]

Hashtbl.fold f tbl init computes (f kN dN ... (f k1 d1 init)...), where k1 ... kN are the keys of all bindings in tbl, and d1 ... dN are the associated values.

fold_left [ListLabels]

List.fold_left f a [b1; ...; bn] is f (... (f (f a b1) b2) ...) bn.

fold_left [List]

List.fold_left f a [b1; ...; bn] is f (... (f (f a b1) b2) ...) bn.

fold_left [ArrayLabels]

Array.fold_left f x a computes f (... (f (f x a.(0)) a.(1)) ...) a.(n-1), where n is the length of the array a.

fold_left [Array]

Array.fold_left f x a computes f (... (f (f x a.(0)) a.(1)) ...) a.(n-1), where n is the length of the array a.

fold_left2 [ListLabels]

List.fold_left2 f a [b1; ...; bn] [c1; ...; cn] is f (... (f (f a b1 c1) b2 c2) ...) bn cn.

fold_left2 [List]

List.fold_left2 f a [b1; ...; bn] [c1; ...; cn] is f (... (f (f a b1 c1) b2 c2) ...) bn cn.

fold_right [ListLabels]

List.fold_right f [a1; ...; an] b is f a1 (f a2 (... (f an b) ...)).

fold_right [List]

List.fold_right f [a1; ...; an] b is f a1 (f a2 (... (f an b) ...)).

fold_right [ArrayLabels]

Array.fold_right f a x computes f a.(0) (f a.(1) ( ... (f a.(n-1) x) ...)), where n is the length of the array a.

fold_right [Array]

Array.fold_right f a x computes f a.(0) (f a.(1) ( ... (f a.(n-1) x) ...)), where n is the length of the array a.

fold_right2 [ListLabels]

List.fold_right2 f [a1; ...; an] [b1; ...; bn] c is f a1 b1 (f a2 b2 (... (f an bn c) ...)).

fold_right2 [List]

List.fold_right2 f [a1; ...; an] [b1; ...; bn] c is f a1 b1 (f a2 b2 (... (f an bn c) ...)).

for_all [Set.S]

for_all p s checks if all elements of the set satisfy the predicate p.

for_all [MoreLabels.Set.S]
for_all [MoreLabels.Map.S]
for_all [Map.S]

for_all p m checks if all the bindings of the map satisfy the predicate p.

for_all [ListLabels]

for_all p [a1; ...; an] checks if all elements of the list satisfy the predicate p.

for_all [List]

for_all p [a1; ...; an] checks if all elements of the list satisfy the predicate p.

for_all [ArrayLabels]

Array.for_all p [|a1; ...; an|] checks if all elements of the array satisfy the predicate p.

for_all [Array]

Array.for_all p [|a1; ...; an|] checks if all elements of the array satisfy the predicate p.

for_all2 [ListLabels]

Same as List.for_all, but for a two-argument predicate.

for_all2 [List]

Same as List.for_all, but for a two-argument predicate.

force [Lazy]

force x forces the suspension x and returns its result.

force_newline [Format]

Force a new line in the current pretty-printing box.

force_val [Lazy]

force_val x forces the suspension x and returns its result.

foreground [Graphics]

Default background and foreground colors (usually, either black foreground on a white background or white foreground on a black background).

format [Printexc.Slot]

format pos slot returns the string representation of slot as raw_backtrace_to_string would format it, assuming it is the pos-th element of the backtrace: the 0-th element is pretty-printed differently than the others.

format_from_string [Scanf]

format_from_string s fmt converts a string argument to a format string, according to the given format string fmt.

format_of_string [Pervasives]

format_of_string s returns a format string read from the string literal s.

formatter_of_buffer [Format]

formatter_of_buffer b returns a new formatter writing to buffer b.

formatter_of_out_channel [Format]

formatter_of_out_channel oc returns a new formatter writing to the corresponding output channel oc.

formatter_of_out_functions [Format]

formatter_of_out_functions out_funs returns a new formatter that writes with the set of output functions out_funs.

formatter_of_symbolic_output_buffer [Format]

formatter_of_symbolic_output_buffer sob returns a symbolic formatter that outputs to symbolic_output_buffer sob.

forward_tag [Obj]
fprintf [Printf]

fprintf outchan format arg1 ... argN formats the arguments arg1 to argN according to the format string format, and outputs the resulting string on the channel outchan.

fprintf [Format]
frexp [Pervasives]

frexp f returns the pair of the significant and the exponent of f.

from [Stream]

Stream.from f returns a stream built from the function f.

from_bytes [Marshal]

Marshal.from_bytes buff ofs unmarshals a structured value like Marshal.from_channel does, except that the byte representation is not read from a channel, but taken from the byte sequence buff, starting at position ofs.

from_channel [Scanf.Scanning]

Scanning.from_channel ic returns a Scanf.Scanning.in_channel formatted input channel which reads from the regular Pervasives.in_channel input channel ic argument.

from_channel [Marshal]

Marshal.from_channel chan reads from channel chan the byte representation of a structured value, as produced by one of the Marshal.to_* functions, and reconstructs and returns the corresponding value.

from_channel [Lexing]

Create a lexer buffer on the given input channel.

from_file [Scanf.Scanning]

An alias for Scanf.Scanning.open_in above.

from_file_bin [Scanf.Scanning]

An alias for Scanf.Scanning.open_in_bin above.

from_fun [Lazy]

from_fun f is the same as lazy (f ()) but slightly more efficient.

from_function [Scanf.Scanning]

Scanning.from_function f returns a Scanf.Scanning.in_channel formatted input channel with the given function as its reading method.

from_function [Lexing]

Create a lexer buffer with the given function as its reading method.

from_hex [Digest]

Convert a hexadecimal representation back into the corresponding digest.

from_string [Scanf.Scanning]

Scanning.from_string s returns a Scanf.Scanning.in_channel formatted input channel which reads from the given string.

from_string [Marshal]

Same as from_bytes but take a string as argument instead of a byte sequence.

from_string [Lexing]

Create a lexer buffer which reads from the given string.

from_val [Lazy]

from_val v returns an already-forced suspension of v.

fscanf [Scanf]
fst [Pervasives]

Return the first component of a pair.

full_init [Random]

Same as Random.init but takes more data as seed.

full_major [Gc]

Do a minor collection, finish the current major collection cycle, and perform a complete new cycle.

full_split [Str]

Same as Str.split_delim, but returns the delimiters as well as the substrings contained between delimiters.

G
get [Weak]

Weak.get ar n returns None if the nth cell of ar is empty, Some x (where x is the value) if it is full.

get [StringLabels]

String.get s n returns the character at index n in string s.

get [String]

String.get s n returns the character at index n in string s.

get [Gc]

Return the current values of the GC parameters in a control record.

get [BytesLabels]

get s n returns the byte at index n in argument s.

get [Bytes]

get s n returns the byte at index n in argument s.

get [ArrayLabels]

Array.get a n returns the element number n of array a.

get [Array]

Array.get a n returns the element number n of array a.

get_all_formatter_output_functions [Format]
get_backtrace [Printexc]

Printexc.get_backtrace () returns a string containing the same exception backtrace that Printexc.print_backtrace would print.

get_bucket [Gc]

get_bucket n returns the current size of the n-th future bucket of the GC smoothing system.

get_callstack [Printexc]

Printexc.get_callstack n returns a description of the top of the call stack on the current program point (for the current thread), with at most n entries.

get_copy [Weak]

Weak.get_copy ar n returns None if the nth cell of ar is empty, Some x (where x is a (shallow) copy of the value) if it is full.

get_credit [Gc]

get_credit () returns the current size of the "work done in advance" counter of the GC smoothing system.

get_data [Obj.Ephemeron]
get_data [Ephemeron.Kn]
get_data [Ephemeron.K2]
get_data [Ephemeron.K1]

Ephemeron.K1.get_data eph returns None if the data of eph is empty, Some x (where x is the data) if it is full.

get_data_copy [Obj.Ephemeron]
get_data_copy [Ephemeron.Kn]
get_data_copy [Ephemeron.K2]
get_data_copy [Ephemeron.K1]

Ephemeron.K1.get_data_copy eph returns None if the data of eph is empty, Some x (where x is a (shallow) copy of the data) if it is full.

get_ellipsis_text [Format]

Return the text of the ellipsis.

get_formatter_out_functions [Format]

Return the current output functions of the pretty-printer, including line splitting and indentation functions.

get_formatter_output_functions [Format]

Return the current output functions of the standard pretty-printer.

get_formatter_tag_functions [Format]

Return the current semantic tag operation functions of the standard pretty-printer.

get_image [Graphics]

Capture the contents of a rectangle on the screen as an image.

get_key [Obj.Ephemeron]
get_key [Ephemeron.Kn]
get_key [Ephemeron.K1]

Ephemeron.K1.get_key eph returns None if the key of eph is empty, Some x (where x is the key) if it is full.

get_key1 [Ephemeron.K2]
get_key1_copy [Ephemeron.K2]
get_key2 [Ephemeron.K2]
get_key2_copy [Ephemeron.K2]
get_key_copy [Obj.Ephemeron]
get_key_copy [Ephemeron.Kn]
get_key_copy [Ephemeron.K1]

Ephemeron.K1.get_key_copy eph returns None if the key of eph is empty, Some x (where x is a (shallow) copy of the key) if it is full.

get_margin [Format]

Returns the position of the right margin.

get_mark_tags [Format]

Return the current status of tag-marking operations.

get_max_boxes [Format]

Returns the maximum number of pretty-printing boxes allowed before ellipsis.

get_max_indent [Format]

Return the maximum indentation limit (in characters).

get_minor_free [Gc]

Return the current size of the free space inside the minor heap.

get_print_tags [Format]

Return the current status of tag-printing operations.

get_raw_backtrace [Printexc]

Printexc.get_raw_backtrace () returns the same exception backtrace that Printexc.print_backtrace would print, but in a raw format.

get_raw_backtrace_next_slot [Printexc]

get_raw_backtrace_next_slot slot returns the next slot inlined, if any.

get_raw_backtrace_slot [Printexc]

get_raw_backtrace_slot bckt pos returns the slot in position pos in the backtrace bckt.

get_state [Random]

Return the current state of the generator used by the basic functions.

get_symbolic_output_buffer [Format]

get_symbolic_output_buffer sob returns the contents of buffer sob.

get_temp_dir_name [Filename]

The name of the temporary directory: Under Unix, the value of the TMPDIR environment variable, or "/tmp" if the variable is not set.

getcwd [Sys]

Return the current working directory of the process.

getenv [Sys]

Return the value associated to a variable in the process environment.

getenv_opt [Sys]

Return the value associated to a variable in the process environment or None if the variable is unbound.

global_replace [Str]

global_replace regexp templ s returns a string identical to s, except that all substrings of s that match regexp have been replaced by templ.

global_substitute [Str]

global_substitute regexp subst s returns a string identical to s, except that all substrings of s that match regexp have been replaced by the result of function subst.

green [Graphics]
group_beginning [Str]

group_beginning n returns the position of the first character of the substring that was matched by the nth group of the regular expression that was matched by the last call to a matching or searching function (see Str.matched_string for details).

group_end [Str]

group_end n returns the position of the character following the last character of substring that was matched by the nth group of the regular expression that was matched by the last call to a matching or searching function (see Str.matched_string for details).

guard [Event]

guard fn returns the event that, when synchronized, computes fn() and behaves as the resulting event.

H
hash [Uchar]

hash u associates a non-negative integer to u.

hash [MoreLabels.Hashtbl]
hash [Hashtbl.SeededHashedType]

A seeded hashing function on keys.

hash [Hashtbl.HashedType]

A hashing function on keys.

hash [Hashtbl]

Hashtbl.hash x associates a nonnegative integer to any value of any type.

hash_param [MoreLabels.Hashtbl]
hash_param [Hashtbl]

Hashtbl.hash_param meaningful total x computes a hash value for x, with the same properties as for hash.

hd [ListLabels]

Return the first element of the given list.

hd [List]

Return the first element of the given list.

header_size [Marshal]

The bytes representing a marshaled value are composed of a fixed-size header and a variable-sized data part, whose size can be determined from the header.

huge_fallback_count [Gc]

Return the number of times we tried to map huge pages and had to fall back to small pages.

hypot [Pervasives]

hypot x y returns sqrt(x *. x + y *. y), that is, the length of the hypotenuse of a right-angled triangle with sides of length x and y, or, equivalently, the distance of the point (x,y) to origin.

I
i [Complex]

The complex number i.

id [Oo]

Return an integer identifying this object, unique for the current execution of the program.

ifprintf [Printf]

Same as Printf.fprintf, but does not print anything.

ifprintf [Format]

Same as fprintf above, but does not print anything.

ignore [Pervasives]

Discard the value of its argument and return ().

ikfprintf [Printf]

Same as kfprintf above, but does not print anything.

ikfprintf [Format]

Same as kfprintf above, but does not print anything.

in_channel_length [Pervasives.LargeFile]
in_channel_length [Pervasives]

Return the size (number of characters) of the regular file on which the given channel is opened.

incr [Pervasives]

Increment the integer contained in the given reference.

index [StringLabels]

String.index s c returns the index of the first occurrence of character c in string s.

index [String]

String.index s c returns the index of the first occurrence of character c in string s.

index [BytesLabels]

index s c returns the index of the first occurrence of byte c in s.

index [Bytes]

index s c returns the index of the first occurrence of byte c in s.

index_from [StringLabels]

String.index_from s i c returns the index of the first occurrence of character c in string s after position i.

index_from [String]

String.index_from s i c returns the index of the first occurrence of character c in string s after position i.

index_from [BytesLabels]

index_from s i c returns the index of the first occurrence of byte c in s after position i.

index_from [Bytes]

index_from s i c returns the index of the first occurrence of byte c in s after position i.

index_from_opt [StringLabels]

String.index_from_opt s i c returns the index of the first occurrence of character c in string s after position i or None if c does not occur in s after position i.

index_from_opt [String]

String.index_from_opt s i c returns the index of the first occurrence of character c in string s after position i or None if c does not occur in s after position i.

index_from_opt [BytesLabels]

index_from _opts i c returns the index of the first occurrence of byte c in s after position i or None if c does not occur in s after position i.

index_from_opt [Bytes]

index_from _opts i c returns the index of the first occurrence of byte c in s after position i or None if c does not occur in s after position i.

index_opt [StringLabels]

String.index_opt s c returns the index of the first occurrence of character c in string s, or None if c does not occur in s.

index_opt [String]

String.index_opt s c returns the index of the first occurrence of character c in string s, or None if c does not occur in s.

index_opt [BytesLabels]

index_opt s c returns the index of the first occurrence of byte c in s or None if c does not occur in s.

index_opt [Bytes]

index_opt s c returns the index of the first occurrence of byte c in s or None if c does not occur in s.

infinity [Pervasives]

Positive infinity.

infix_tag [Obj]
init [StringLabels]

init n f returns a string of length n, with character i initialized to the result of f i.

init [String]

String.init n f returns a string of length n, with character i initialized to the result of f i (called in increasing index order).

init [Random]

Initialize the generator, using the argument as a seed.

init [ListLabels]

List.init len f is f 0; f 1; ...; f (len-1), evaluated left to right.

init [List]

List.init len f is f 0; f 1; ...; f (len-1), evaluated left to right.

init [Dynlink]
init [BytesLabels]

init n f returns a fresh byte sequence of length n, with character i initialized to the result of f i.

init [Bytes]

Bytes.init n f returns a fresh byte sequence of length n, with character i initialized to the result of f i (in increasing index order).

init [ArrayLabels]

Array.init n f returns a fresh array of length n, with element number i initialized to the result of f i.

init [Array]

Array.init n f returns a fresh array of length n, with element number i initialized to the result of f i.

input [Pervasives]

input ic buf pos len reads up to len characters from the given channel ic, storing them in byte sequence buf, starting at character number pos.

input [Digest]

Read a digest from the given input channel.

input_binary_int [Pervasives]

Read an integer encoded in binary format (4 bytes, big-endian) from the given input channel.

input_byte [Pervasives]

Same as Pervasives.input_char, but return the 8-bit integer representing the character.

input_char [Pervasives]

Read one character from the given input channel.

input_line [Pervasives]

Read characters from the given input channel, until a newline character is encountered.

input_value [Pervasives]

Read the representation of a structured value, as produced by Pervasives.output_value, and return the corresponding value.

int [Random.State]
int [Random]

Random.int bound returns a random integer between 0 (inclusive) and bound (exclusive).

int32 [Random.State]
int32 [Random]

Random.int32 bound returns a random integer between 0 (inclusive) and bound (exclusive).

int64 [Random.State]
int64 [Random]

Random.int64 bound returns a random integer between 0 (inclusive) and bound (exclusive).

int_of_char [Pervasives]

Return the ASCII code of the argument.

int_of_float [Pervasives]

Truncate the given floating-point number to an integer.

int_of_string [Pervasives]

Convert the given string to an integer.

int_of_string_opt [Pervasives]

Same as int_of_string, but returns None instead of raising.

int_size [Sys]

Size of an int.

int_tag [Obj]
inter [Set.S]

Set intersection.

inter [MoreLabels.Set.S]
interactive [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.

inv [Complex]

Multiplicative inverse (1/z).

invalid_arg [Pervasives]

Raise exception Invalid_argument with the given string.

is_block [Obj]
is_char [Uchar]

is_char u is true iff u is a latin1 OCaml character.

is_directory [Sys]

Returns true if the given name refers to a directory, false if it refers to another kind of file.

is_empty [Stack]

Return true if the given stack is empty, false otherwise.

is_empty [Set.S]

Test whether a set is empty or not.

is_empty [Queue]

Return true if the given queue is empty, false otherwise.

is_empty [MoreLabels.Set.S]
is_empty [MoreLabels.Map.S]
is_empty [Map.S]

Test whether a map is empty or not.

is_implicit [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_inline [Printexc.Slot]

is_inline slot is true when slot refers to a call that got inlined by the compiler, and false when it comes from any other context.

is_int [Obj]
is_native [Dynlink]

true if the program is native, false if the program is bytecode.

is_raise [Printexc.Slot]

is_raise slot is true when slot refers to a raising point in the code, and false when it comes from a simple function call.

is_randomized [MoreLabels.Hashtbl]
is_randomized [Hashtbl]

return if the tables are currently created in randomized mode by default

is_relative [Filename]

Return true if the file name is relative to the current directory, false if it is absolute (i.e.

is_val [Lazy]

is_val x returns true if x has already been forced and did not raise an exception.

is_valid [Uchar]

is_valid n is true iff n is an Unicode scalar value (i.e.

iter [Weak.S]

iter f t calls f on each element of t, in some unspecified order.

iter [StringLabels]

String.iter f s applies function f in turn to all the characters of s.

iter [String]

String.iter f s applies function f in turn to all the characters of s.

iter [Stream]

Stream.iter f s scans the whole stream s, applying function f in turn to each stream element encountered.

iter [Stack]

iter f s applies f in turn to all elements of s, from the element at the top of the stack to the element at the bottom of the stack.

iter [Set.S]

iter f s applies f in turn to all elements of s.

iter [Queue]

iter f q applies f in turn to all elements of q, from the least recently entered to the most recently entered.

iter [MoreLabels.Set.S]
iter [MoreLabels.Map.S]
iter [MoreLabels.Hashtbl.SeededS]
iter [MoreLabels.Hashtbl.S]
iter [MoreLabels.Hashtbl]
iter [Map.S]

iter f m applies f to all bindings in map m.

iter [ListLabels]

List.iter f [a1; ...; an] applies function f in turn to a1; ...; an.

iter [List]

List.iter f [a1; ...; an] applies function f in turn to a1; ...; an.

iter [Hashtbl.SeededS]
iter [Hashtbl.S]
iter [Hashtbl]

Hashtbl.iter f tbl applies f to all bindings in table tbl.

iter [BytesLabels]

iter f s applies function f in turn to all the bytes of s.

iter [Bytes]

iter f s applies function f in turn to all the bytes of s.

iter [ArrayLabels]

Array.iter f a applies function f in turn to all the elements of a.

iter [Array]

Array.iter f a applies function f in turn to all the elements of a.

iter2 [ListLabels]

List.iter2 f [a1; ...; an] [b1; ...; bn] calls in turn f a1 b1; ...; f an bn.

iter2 [List]

List.iter2 f [a1; ...; an] [b1; ...; bn] calls in turn f a1 b1; ...; f an bn.

iter2 [ArrayLabels]

Array.iter2 f a b applies function f to all the elements of a and b.

iter2 [Array]

Array.iter2 f a b applies function f to all the elements of a and b.

iteri [StringLabels]

Same as String.iter, but the function is applied to the index of the element as first argument (counting from 0), and the character itself as second argument.

iteri [String]

Same as String.iter, but the function is applied to the index of the element as first argument (counting from 0), and the character itself as second argument.

iteri [ListLabels]

Same as List.iter, but the function is applied to the index of the element as first argument (counting from 0), and the element itself as second argument.

iteri [List]

Same as List.iter, but the function is applied to the index of the element as first argument (counting from 0), and the element itself as second argument.

iteri [BytesLabels]

Same as Bytes.iter, but the function is applied to the index of the byte as first argument and the byte itself as second argument.

iteri [Bytes]

Same as Bytes.iter, but the function is applied to the index of the byte as first argument and the byte itself as second argument.

iteri [ArrayLabels]

Same as Array.iter, but the function is applied to the index of the element as first argument, and the element itself as second argument.

iteri [Array]

Same as Array.iter, but the function is applied with the index of the element as first argument, and the element itself as second argument.

J
junk [Stream]

Remove the first element of the stream, possibly unfreezing it before.

K
kasprintf [Format]

Same as asprintf above, but instead of returning the string, passes it to the first argument.

kbprintf [Printf]

Same as bprintf, but instead of returning immediately, passes the buffer to its first argument at the end of printing.

key_pressed [Graphics]

Return true if a keypress is available; that is, if read_key would not block.

kfprintf [Printf]

Same as fprintf, but instead of returning immediately, passes the out channel to its first argument at the end of printing.

kfprintf [Format]

Same as fprintf above, but instead of returning immediately, passes the formatter to its first argument at the end of printing.

kfscanf [Scanf]
kprintf [Printf]

A deprecated synonym for ksprintf.

kprintf [Format]
kscanf [Scanf]

Same as Scanf.bscanf, but takes an additional function argument ef that is called in case of error: if the scanning process or some conversion fails, the scanning function aborts and calls the error handling function ef with the formatted input channel and the exception that aborted the scanning process as arguments.

ksprintf [Printf]

Same as sprintf above, but instead of returning the string, passes it to the first argument.

ksprintf [Format]

Same as sprintf above, but instead of returning the string, passes it to the first argument.

ksscanf [Scanf]

Same as Scanf.kscanf but reads from the given string.

L
last_chars [Str]

last_chars s n returns the last n characters of s.

last_non_constant_constructor_tag [Obj]
lazy_from_fun [Lazy]
lazy_from_val [Lazy]
lazy_is_val [Lazy]
lazy_tag [Obj]
ldexp [Pervasives]

ldexp x n returns x *. 2 ** n.

length [Weak]

Weak.length ar returns the length (number of elements) of ar.

length [StringLabels]

Return the length (number of characters) of the given string.

length [String]

Return the length (number of characters) of the given string.

length [Stack]

Return the number of elements in a stack.

length [Queue]

Return the number of elements in a queue.

length [Obj.Ephemeron]

return the number of keys

length [MoreLabels.Hashtbl.SeededS]
length [MoreLabels.Hashtbl.S]
length [MoreLabels.Hashtbl]
length [ListLabels]

Return the length (number of elements) of the given list.

length [List]

Return the length (number of elements) of the given list.

length [Hashtbl.SeededS]
length [Hashtbl.S]
length [Hashtbl]

Hashtbl.length tbl returns the number of bindings in tbl.

length [BytesLabels]

Return the length (number of bytes) of the argument.

length [Bytes]

Return the length (number of bytes) of the argument.

length [Buffer]

Return the number of characters currently contained in the buffer.

length [ArrayLabels]

Return the length (number of elements) of the given array.

length [Array]

Return the length (number of elements) of the given array.

lexeme [Lexing]

Lexing.lexeme lexbuf returns the string matched by the regular expression.

lexeme_char [Lexing]

Lexing.lexeme_char lexbuf i returns character number i in the matched string.

lexeme_end [Lexing]

Lexing.lexeme_end lexbuf returns the offset in the input stream of the character following the last character of the matched string.

lexeme_end_p [Lexing]

Like lexeme_end, but return a complete position instead of an offset.

lexeme_start [Lexing]

Lexing.lexeme_start lexbuf returns the offset in the input stream of the first character of the matched string.

lexeme_start_p [Lexing]

Like lexeme_start, but return a complete position instead of an offset.

lineto [Graphics]

Draw a line with endpoints the current point and the given point, and move the current point to the given point.

list [Sort]

Sort a list in increasing order according to an ordering predicate.

lnot [Pervasives]

Bitwise logical negation.

loadfile [Dynlink]

In bytecode: load the given bytecode object file (.cmo file) or bytecode library file (.cma file), and link it with the running program.

loadfile_private [Dynlink]

Same as loadfile, except that the compilation units just loaded are hidden (cannot be referenced) from other modules dynamically loaded afterwards.

location [Printexc.Slot]

location slot returns the location information of the slot, if available, and None otherwise.

lock [Mutex]

Lock the given mutex.

log [Pervasives]

Natural logarithm.

log [Complex]

Natural logarithm (in base e).

log10 [Pervasives]

Base 10 logarithm.

log1p [Pervasives]

log1p x computes log(1.0 +. x) (natural logarithm), giving numerically-accurate results even if x is close to 0.0.

logand [Nativeint]

Bitwise logical and.

logand [Int64]

Bitwise logical and.

logand [Int32]

Bitwise logical and.

lognot [Nativeint]

Bitwise logical negation.

lognot [Int64]

Bitwise logical negation.

lognot [Int32]

Bitwise logical negation.

logor [Nativeint]

Bitwise logical or.

logor [Int64]

Bitwise logical or.

logor [Int32]

Bitwise logical or.

logxor [Nativeint]

Bitwise logical exclusive or.

logxor [Int64]

Bitwise logical exclusive or.

logxor [Int32]

Bitwise logical exclusive or.

loop_at_exit [Graphics]

Loop before exiting the program, the list given as argument is the list of handlers and the events on which these handlers are called.

lowercase [StringLabels]

Return a copy of the argument, with all uppercase letters translated to lowercase, including accented letters of the ISO Latin-1 (8859-1) character set.

lowercase [String]

Return a copy of the argument, with all uppercase letters translated to lowercase, including accented letters of the ISO Latin-1 (8859-1) character set.

lowercase [Char]

Convert the given character to its equivalent lowercase character, using the ISO Latin-1 (8859-1) character set.

lowercase [BytesLabels]

Return a copy of the argument, with all uppercase letters translated to lowercase, including accented letters of the ISO Latin-1 (8859-1) character set.

lowercase [Bytes]

Return a copy of the argument, with all uppercase letters translated to lowercase, including accented letters of the ISO Latin-1 (8859-1) character set.

lowercase_ascii [StringLabels]

Return a copy of the argument, with all uppercase letters translated to lowercase, using the US-ASCII character set.

lowercase_ascii [String]

Return a copy of the argument, with all uppercase letters translated to lowercase, using the US-ASCII character set.

lowercase_ascii [Char]

Convert the given character to its equivalent lowercase character, using the US-ASCII character set.

lowercase_ascii [BytesLabels]

Return a copy of the argument, with all uppercase letters translated to lowercase, using the US-ASCII character set.

lowercase_ascii [Bytes]

Return a copy of the argument, with all uppercase letters translated to lowercase, using the US-ASCII character set.

M
magenta [Graphics]
magic [Obj]
major [Gc]

Do a minor collection and finish the current major collection cycle.

major_slice [Gc]

major_slice n Do a minor collection and a slice of major collection.

make [StringLabels]

String.make n c returns a fresh string of length n, filled with the character c.

make [String]

String.make n c returns a fresh string of length n, filled with the character c.

make [Random.State]

Create a new state and initialize it with the given seed.

make [BytesLabels]

make n c returns a new byte sequence of length n, filled with the byte c.

make [Bytes]

make n c returns a new byte sequence of length n, filled with the byte c.

make [ArrayLabels]

Array.make n x returns a fresh array of length n, initialized with x.

make [Array]

Array.make n x returns a fresh array of length n, initialized with x.

make_float [ArrayLabels]
make_float [Array]
make_formatter [Format]

make_formatter out flush returns a new formatter that outputs with function out, and flushes with function flush.

make_image [Graphics]

Convert the given color matrix to an image.

make_lexer [Genlex]

Construct the lexer function.

make_matrix [ArrayLabels]

Array.make_matrix dimx dimy e returns a two-dimensional array (an array of arrays) with first dimension dimx and second dimension dimy.

make_matrix [Array]

Array.make_matrix dimx dimy e returns a two-dimensional array (an array of arrays) with first dimension dimx and second dimension dimy.

make_self_init [Random.State]

Create a new state and initialize it with a system-dependent low-entropy seed.

make_symbolic_output_buffer [Format]

make_symbolic_output_buffer () returns a fresh buffer for symbolic output.

map [StringLabels]

String.map f s applies function f in turn to all the characters of s and stores the results in a new string that is returned.

map [String]

String.map f s applies function f in turn to all the characters of s (in increasing index order) and stores the results in a new string that is returned.

map [Set.S]

map f s is the set whose elements are f a0,f a1...

map [MoreLabels.Set.S]
map [MoreLabels.Map.S]
map [Map.S]

map f m returns a map with same domain as m, where the associated value a of all bindings of m has been replaced by the result of the application of f to a.

map [ListLabels]

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 [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 [BytesLabels]

map f s applies function f in turn to all the bytes of s and stores the resulting bytes in a new sequence that is returned as the result.

map [Bytes]

map f s applies function f in turn to all the bytes of s (in increasing index order) and stores the resulting bytes in a new sequence that is returned as the result.

map [ArrayLabels]

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 [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) |].

map2 [ListLabels]

List.map2 f [a1; ...; an] [b1; ...; bn] is [f a1 b1; ...; f an bn].

map2 [List]

List.map2 f [a1; ...; an] [b1; ...; bn] is [f a1 b1; ...; f an bn].

map2 [ArrayLabels]

Array.map2 f a b applies function f to all the elements of a and b, and builds an array with the results returned by f: [| f a.(0) b.(0); ...; f a.(Array.length a - 1) b.(Array.length b - 1)|].

map2 [Array]

Array.map2 f a b applies function f to all the elements of a and b, and builds an array with the results returned by f: [| f a.(0) b.(0); ...; f a.(Array.length a - 1) b.(Array.length b - 1)|].

mapi [StringLabels]

String.mapi f s calls f with each character of s and its index (in increasing index order) and stores the results in a new string that is returned.

mapi [String]

String.mapi f s calls f with each character of s and its index (in increasing index order) and stores the results in a new string that is returned.

mapi [MoreLabels.Map.S]
mapi [Map.S]

Same as Map.S.map, but the function receives as arguments both the key and the associated value for each binding of the map.

mapi [ListLabels]

Same as List.map, but the function is applied to the index of the element as first argument (counting from 0), and the element itself as second argument.

mapi [List]

Same as List.map, but the function is applied to the index of the element as first argument (counting from 0), and the element itself as second argument.

mapi [BytesLabels]

mapi f s calls f with each character of s and its index (in increasing index order) and stores the resulting bytes in a new sequence that is returned as the result.

mapi [Bytes]

mapi f s calls f with each character of s and its index (in increasing index order) and stores the resulting bytes in a new sequence that is returned as the result.

mapi [ArrayLabels]

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 [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.

marshal [Obj]
match_beginning [Str]

match_beginning() returns the position of the first character of the substring that was matched by the last call to a matching or searching function (see Str.matched_string for details).

match_end [Str]

match_end() returns the position of the character following the last character of the substring that was matched by the last call to a matching or searching function (see Str.matched_string for details).

matched_group [Str]

matched_group n s returns the substring of s that was matched by the nth group \(...\) of the regular expression that was matched by the last call to a matching or searching function (see Str.matched_string for details).

matched_string [Str]

matched_string s returns the substring of s that was matched by the last call to one of the following matching or searching functions: Str.string_match, Str.search_forward, Str.search_backward, Str.string_partial_match, Str.global_substitute, Str.substitute_first provided that none of the following functions was called inbetween: Str.global_replace, Str.replace_first, Str.split, Str.bounded_split, Str.split_delim, Str.bounded_split_delim, Str.full_split, Str.bounded_full_split Note: in the case of global_substitute and substitute_first, a call to matched_string is only valid within the subst argument, not after global_substitute or substitute_first returns.

max [Uchar]

max is U+10FFFF.

max [Pervasives]

Return the greater of the two arguments.

max_array_length [Sys]

Maximum length of a normal array.

max_binding [MoreLabels.Map.S]
max_binding [Map.S]

Same as Map.S.min_binding, but returns the largest binding of the given map.

max_binding_opt [MoreLabels.Map.S]
max_binding_opt [Map.S]

Same as Map.S.min_binding_opt, but returns the largest binding of the given map.

max_elt [Set.S]

Same as Set.S.min_elt, but returns the largest element of the given set.

max_elt [MoreLabels.Set.S]
max_elt_opt [Set.S]

Same as Set.S.min_elt_opt, but returns the largest element of the given set.

max_elt_opt [MoreLabels.Set.S]
max_float [Pervasives]

The largest positive finite value of type float.

max_int [Pervasives]

The greatest representable integer.

max_int [Nativeint]

The greatest representable native integer, either 231 - 1 on a 32-bit platform, or 263 - 1 on a 64-bit platform.

max_int [Int64]

The greatest representable 64-bit integer, 263 - 1.

max_int [Int32]

The greatest representable 32-bit integer, 231 - 1.

max_string_length [Sys]

Maximum length of strings and byte sequences.

mem [Weak.S]

mem t x returns true if there is at least one instance of x in t, false otherwise.

mem [Set.S]

mem x s tests whether x belongs to the set s.

mem [MoreLabels.Set.S]
mem [MoreLabels.Map.S]
mem [MoreLabels.Hashtbl.SeededS]
mem [MoreLabels.Hashtbl.S]
mem [MoreLabels.Hashtbl]
mem [Map.S]

mem x m returns true if m contains a binding for x, and false otherwise.

mem [ListLabels]

mem a l is true if and only if a is equal to an element of l.

mem [List]

mem a l is true if and only if a is equal to an element of l.

mem [Hashtbl.SeededS]
mem [Hashtbl.S]
mem [Hashtbl]

Hashtbl.mem tbl x checks if x is bound in tbl.

mem [ArrayLabels]

mem x a is true if and only if x is equal to an element of a.

mem [Array]

mem a l is true if and only if a is equal to an element of l.

mem_assoc [ListLabels]

Same as List.assoc, but simply return true if a binding exists, and false if no bindings exist for the given key.

mem_assoc [List]

Same as List.assoc, but simply return true if a binding exists, and false if no bindings exist for the given key.

mem_assq [ListLabels]

Same as List.mem_assoc, but uses physical equality instead of structural equality to compare keys.

mem_assq [List]

Same as List.mem_assoc, but uses physical equality instead of structural equality to compare keys.

memq [ListLabels]

Same as List.mem, but uses physical equality instead of structural equality to compare list elements.

memq [List]

Same as List.mem, but uses physical equality instead of structural equality to compare list elements.

memq [ArrayLabels]

Same as Array.mem, but uses physical equality instead of structural equality to compare list elements.

memq [Array]

Same as Array.mem, but uses physical equality instead of structural equality to compare array elements.

merge [Weak.S]

merge t x returns an instance of x found in t if any, or else adds x to t and return x.

merge [Sort]

Merge two lists according to the given predicate.

merge [MoreLabels.Map.S]
merge [Map.S]

merge f m1 m2 computes a map whose keys is a subset of keys of m1 and of m2.

merge [ListLabels]

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 containing all the elements of l1 and l2.

merge [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 containing all the elements of l1 and l2.

min [Uchar]

min is U+0000.

min [Pervasives]

Return the smaller of the two arguments.

min_binding [MoreLabels.Map.S]
min_binding [Map.S]

Return the smallest binding of the given map (with respect to the Ord.compare ordering), or raise Not_found if the map is empty.

min_binding_opt [MoreLabels.Map.S]
min_binding_opt [Map.S]

Return the smallest binding of the given map (with respect to the Ord.compare ordering), or None if the map is empty.

min_elt [Set.S]

Return the smallest element of the given set (with respect to the Ord.compare ordering), or raise Not_found if the set is empty.

min_elt [MoreLabels.Set.S]
min_elt_opt [Set.S]

Return the smallest element of the given set (with respect to the Ord.compare ordering), or None if the set is empty.

min_elt_opt [MoreLabels.Set.S]
min_float [Pervasives]

The smallest positive, non-zero, non-denormalized value of type float.

min_int [Pervasives]

The smallest representable integer.

min_int [Nativeint]

The smallest representable native integer, either -231 on a 32-bit platform, or -263 on a 64-bit platform.

min_int [Int64]

The smallest representable 64-bit integer, -263.

min_int [Int32]

The smallest representable 32-bit integer, -231.

minor [Gc]

Trigger a minor collection.

minor_words [Gc]

Number of words allocated in the minor heap since the program was started.

minus_one [Nativeint]

The native integer -1.

minus_one [Int64]

The 64-bit integer -1.

minus_one [Int32]

The 32-bit integer -1.

mod_float [Pervasives]

mod_float a b returns the remainder of a with respect to b.

modf [Pervasives]

modf f returns the pair of the fractional and integral part of f.

mouse_pos [Graphics]

Return the position of the mouse cursor, relative to the graphics window.

moveto [Graphics]

Position the current point.

mul [Nativeint]

Multiplication.

mul [Int64]

Multiplication.

mul [Int32]

Multiplication.

mul [Complex]

Multiplication

N
name_of_input [Scanf.Scanning]

Scanning.name_of_input ic returns the name of the character source for the given Scanf.Scanning.in_channel formatted input channel.

nan [Pervasives]

A special floating-point value denoting the result of an undefined operation such as 0.0 /. 0.0.

nativeint [Random.State]
nativeint [Random]

Random.nativeint bound returns a random integer between 0 (inclusive) and bound (exclusive).

neg [Nativeint]

Unary negation.

neg [Int64]

Unary negation.

neg [Int32]

Unary negation.

neg [Complex]

Unary negation.

neg_infinity [Pervasives]

Negative infinity.

new_block [Obj]
new_channel [Event]

Return a new channel.

new_line [Lexing]

Update the lex_curr_p field of the lexbuf to reflect the start of a new line.

next [Stream]

Return the first element of the stream and remove it from the stream.

no_scan_tag [Obj]
norm [Complex]

Norm: given x + i.y, returns sqrt(x^2 + y^2).

norm2 [Complex]

Norm squared: given x + i.y, returns x^2 + y^2.

not [Pervasives]

The boolean negation.

npeek [Stream]

npeek n returns the list of the n first elements of the stream, or all its remaining elements if less than n elements are available.

nth [ListLabels]

Return the n-th element of the given list.

nth [List]

Return the n-th element of the given list.

nth [Buffer]

Get the n-th character of the buffer.

nth_opt [ListLabels]

Return the n-th element of the given list.

nth_opt [List]

Return the n-th element of the given list.

O
obj [Obj]
object_tag [Obj]
ocaml_version [Sys]

ocaml_version is the version of OCaml.

of_bytes [Stream]

Return the stream of the characters of the bytes parameter.

of_channel [Stream]

Return the stream of the characters read from the input channel.

of_char [Uchar]

of_char c is c as an Unicode character.

of_float [Nativeint]

Convert the given floating-point number to a native integer, discarding the fractional part (truncate towards 0).

of_float [Int64]

Convert the given floating-point number to a 64-bit integer, discarding the fractional part (truncate towards 0).

of_float [Int32]

Convert the given floating-point number to a 32-bit integer, discarding the fractional part (truncate towards 0).

of_int [Uchar]

of_int i is i as an Unicode character.

of_int [Nativeint]

Convert the given integer (type int) to a native integer (type nativeint).

of_int [Int64]

Convert the given integer (type int) to a 64-bit integer (type int64).

of_int [Int32]

Convert the given integer (type int) to a 32-bit integer (type int32).

of_int32 [Nativeint]

Convert the given 32-bit integer (type int32) to a native integer.

of_int32 [Int64]

Convert the given 32-bit integer (type int32) to a 64-bit integer (type int64).

of_list [Stream]

Return the stream holding the elements of the list in the same order.

of_list [Set.S]

of_list l creates a set from a list of elements.

of_list [MoreLabels.Set.S]
of_list [ArrayLabels]

Array.of_list l returns a fresh array containing the elements of l.

of_list [Array]

Array.of_list l returns a fresh array containing the elements of l.

of_nativeint [Int64]

Convert the given native integer (type nativeint) to a 64-bit integer (type int64).

of_string [Stream]

Return the stream of the characters of the string parameter.

of_string [Nativeint]

Convert the given string to a native integer.

of_string [Int64]

Convert the given string to a 64-bit integer.

of_string [Int32]

Convert the given string to a 32-bit integer.

of_string [BytesLabels]

Return a new byte sequence that contains the same bytes as the given string.

of_string [Bytes]

Return a new byte sequence that contains the same bytes as the given string.

of_string_opt [Nativeint]

Same as of_string, but return None instead of raising.

of_string_opt [Int64]

Same as of_string, but return None instead of raising.

of_string_opt [Int32]

Same as of_string, but return None instead of raising.

one [Nativeint]

The native integer 1.

one [Int64]

The 64-bit integer 1.

one [Int32]

The 32-bit integer 1.

one [Complex]

The complex number 1.

opaque_identity [Sys]

For the purposes of optimization, opaque_identity behaves like an unknown (and thus possibly side-effecting) function.

open_box [Format]

pp_open_box ppf d opens a new compacting pretty-printing box with offset d in the formatter ppf.

open_graph [Graphics]

Show the graphics window or switch the screen to graphic mode.

open_hbox [Format]

pp_open_hbox ppf () opens a new 'horizontal' pretty-printing box.

open_hovbox [Format]

pp_open_hovbox ppf d opens a new 'horizontal-or-vertical' pretty-printing box with offset d.

open_hvbox [Format]

pp_open_hvbox ppf d opens a new 'horizontal/vertical' pretty-printing box with offset d.

open_in [Scanf.Scanning]

Scanning.open_in fname returns a Scanf.Scanning.in_channel formatted input channel for bufferized reading in text mode from file fname.

open_in [Pervasives]

Open the named file for reading, and return a new input channel on that file, positioned at the beginning of the file.

open_in_bin [Scanf.Scanning]

Scanning.open_in_bin fname returns a Scanf.Scanning.in_channel formatted input channel for bufferized reading in binary mode from file fname.

open_in_bin [Pervasives]

Same as Pervasives.open_in, but the file is opened in binary mode, so that no translation takes place during reads.

open_in_gen [Pervasives]

open_in_gen mode perm filename opens the named file for reading, as described above.

open_out [Pervasives]

Open the named file for writing, and return a new output channel on that file, positioned at the beginning of the file.

open_out_bin [Pervasives]

Same as Pervasives.open_out, but the file is opened in binary mode, so that no translation takes place during writes.

open_out_gen [Pervasives]

open_out_gen mode perm filename opens the named file for writing, as described above.

open_subwindow [GraphicsX11]

Create a sub-window of the current OCaml graphics window and return its identifier.

open_tag [Format]

pp_open_tag ppf t opens the semantic tag named t.

open_tbox [Format]

open_tbox () opens a new tabulation box.

open_temp_file [Filename]

Same as Filename.temp_file, but returns both the name of a fresh temporary file, and an output channel opened (atomically) on this file.

open_vbox [Format]

pp_open_vbox ppf d opens a new 'vertical' pretty-printing box with offset d.

os_type [Sys]

Operating system currently executing the OCaml program.

out_channel_length [Pervasives.LargeFile]
out_channel_length [Pervasives]

Return the size (number of characters) of the regular file on which the given channel is opened.

out_of_heap_tag [Obj]
output [Pervasives]

output oc buf pos len writes len characters from byte sequence buf, starting at offset pos, to the given output channel oc.

output [Digest]

Write a digest on the given output channel.

output_binary_int [Pervasives]

Write one integer in binary format (4 bytes, big-endian) on the given output channel.

output_buffer [Buffer]

output_buffer oc b writes the current contents of buffer b on the output channel oc.

output_byte [Pervasives]

Write one 8-bit integer (as the single character with that code) on the given output channel.

output_bytes [Pervasives]

Write the byte sequence on the given output channel.

output_char [Pervasives]

Write the character on the given output channel.

output_string [Pervasives]

Write the string on the given output channel.

output_substring [Pervasives]

Same as output but take a string as argument instead of a byte sequence.

output_value [Pervasives]

Write the representation of a structured value of any type to a channel.

over_max_boxes [Format]

Tests if the maximum number of pretty-printing boxes allowed have already been opened.

P
parent_dir_name [Filename]

The conventional name for the parent of the current directory (e.g.

parse [Arg]

Arg.parse speclist anon_fun usage_msg parses the command line.

parse_and_expand_argv_dynamic [Arg]

Same as Arg.parse_argv_dynamic, except that the argv argument is a reference and may be updated during the parsing of Expand arguments.

parse_argv [Arg]

Arg.parse_argv ~current args speclist anon_fun usage_msg parses the array args as if it were the command line.

parse_argv_dynamic [Arg]

Same as Arg.parse_argv, except that the speclist argument is a reference and may be updated during the parsing.

parse_dynamic [Arg]

Same as Arg.parse, except that the speclist argument is a reference and may be updated during the parsing.

parse_expand [Arg]

Same as Arg.parse, except that the Expand arguments are allowed and the Arg.current reference is not updated.

partition [Set.S]

partition p s returns a pair of sets (s1, s2), where s1 is the set of all the elements of s that satisfy the predicate p, and s2 is the set of all the elements of s that do not satisfy p.

partition [MoreLabels.Set.S]
partition [MoreLabels.Map.S]
partition [Map.S]

partition p m returns a pair of maps (m1, m2), where m1 contains all the bindings of s that satisfy the predicate p, and m2 is the map with all the bindings of s that do not satisfy p.

partition [ListLabels]

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 [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.

peek [Stream]

Return Some of "the first element" of the stream, or None if the stream is empty.

peek [Queue]

peek q returns the first element in queue q, without removing it from the queue, or raises Queue.Empty if the queue is empty.

plot [Graphics]

Plot the given point with the current drawing color.

plots [Graphics]

Plot the given points with the current drawing color.

point_color [Graphics]

Return the color of the given point in the backing store (see "Double buffering" below).

polar [Complex]

polar norm arg returns the complex having norm norm and argument arg.

poll [Event]

Non-blocking version of Event.sync: offer all the communication possibilities specified in the event to the outside world, and if one can take place immediately, perform it and return Some r where r is the result value of that communication.

pop [Stack]

pop s removes and returns the topmost element in stack s, or raises Stack.Empty if the stack is empty.

pop [Queue]

pop is a synonym for take.

pos_in [Pervasives.LargeFile]
pos_in [Pervasives]

Return the current reading position for the given channel.

pos_out [Pervasives.LargeFile]
pos_out [Pervasives]

Return the current writing position for the given channel.

pow [Complex]

Power function.

pp_close_box [Format]
pp_close_tag [Format]
pp_close_tbox [Format]
pp_force_newline [Format]
pp_get_all_formatter_output_functions [Format]
pp_get_ellipsis_text [Format]
pp_get_formatter_out_functions [Format]
pp_get_formatter_output_functions [Format]
pp_get_formatter_tag_functions [Format]
pp_get_margin [Format]
pp_get_mark_tags [Format]
pp_get_max_boxes [Format]
pp_get_max_indent [Format]
pp_get_print_tags [Format]
pp_open_box [Format]
pp_open_hbox [Format]
pp_open_hovbox [Format]
pp_open_hvbox [Format]
pp_open_tag [Format]
pp_open_tbox [Format]
pp_open_vbox [Format]
pp_over_max_boxes [Format]
pp_print_as [Format]
pp_print_bool [Format]
pp_print_break [Format]
pp_print_char [Format]
pp_print_cut [Format]
pp_print_float [Format]
pp_print_flush [Format]
pp_print_if_newline [Format]
pp_print_int [Format]
pp_print_list [Format]

pp_print_list ?pp_sep pp_v ppf l prints items of list l, using pp_v to print each item, and calling pp_sep between items (pp_sep defaults to Format.pp_print_cut.

pp_print_newline [Format]
pp_print_space [Format]
pp_print_string [Format]
pp_print_tab [Format]
pp_print_tbreak [Format]
pp_print_text [Format]

pp_print_text ppf s prints s with spaces and newlines respectively printed using Format.pp_print_space and Format.pp_force_newline.

pp_set_all_formatter_output_functions [Format]
pp_set_ellipsis_text [Format]
pp_set_formatter_out_channel [Format]

Redirecting the standard formatter output

pp_set_formatter_out_functions [Format]
pp_set_formatter_output_functions [Format]
pp_set_formatter_tag_functions [Format]
pp_set_margin [Format]
pp_set_mark_tags [Format]
pp_set_max_boxes [Format]
pp_set_max_indent [Format]
pp_set_print_tags [Format]
pp_set_tab [Format]
pp_set_tags [Format]
pred [Uchar]

pred u is the scalar value before u in the set of Unicode scalar values.

pred [Pervasives]

pred x is x - 1.

pred [Nativeint]

Predecessor.

pred [Int64]

Predecessor.

pred [Int32]

Predecessor.

prerr_bytes [Pervasives]

Print a byte sequence on standard error.

prerr_char [Pervasives]

Print a character on standard error.

prerr_endline [Pervasives]

Print a string, followed by a newline character on standard error and flush standard error.

prerr_float [Pervasives]

Print a floating-point number, in decimal, on standard error.

prerr_int [Pervasives]

Print an integer, in decimal, on standard error.

prerr_newline [Pervasives]

Print a newline character on standard error, and flush standard error.

prerr_string [Pervasives]

Print a string on standard error.

print [Printexc]

Printexc.print fn x applies fn to x and returns the result.

print_as [Format]

pp_print_as ppf len s prints s in the current pretty-printing box.

print_backtrace [Printexc]

Printexc.print_backtrace oc prints an exception backtrace on the output channel oc.

print_bool [Format]

Print a boolean in the current pretty-printing box.

print_break [Format]

pp_print_break ppf nspaces offset emits a 'full' break hint: the pretty-printer may split the line at this point, otherwise it prints nspaces spaces.

print_bytes [Pervasives]

Print a byte sequence on standard output.

print_char [Pervasives]

Print a character on standard output.

print_char [Format]

Print a character in the current pretty-printing box.

print_cut [Format]

pp_print_cut ppf () emits a 'cut' break hint: the pretty-printer may split the line at this point, otherwise it prints nothing.

print_endline [Pervasives]

Print a string, followed by a newline character, on standard output and flush standard output.

print_float [Pervasives]

Print a floating-point number, in decimal, on standard output.

print_float [Format]

Print a floating point number in the current pretty-printing box.

print_flush [Format]

End of pretty-printing: resets the pretty-printer to initial state.

print_if_newline [Format]

Execute the next formatting command if the preceding line has just been split.

print_int [Pervasives]

Print an integer, in decimal, on standard output.

print_int [Format]

Print an integer in the current pretty-printing box.

print_newline [Pervasives]

Print a newline character on standard output, and flush standard output.

print_newline [Format]

End of pretty-printing: resets the pretty-printer to initial state.

print_raw_backtrace [Printexc]

Print a raw backtrace in the same format Printexc.print_backtrace uses.

print_space [Format]

pp_print_space ppf () emits a 'space' break hint: the pretty-printer may split the line at this point, otherwise it prints one space.

print_stat [Gc]

Print the current values of the memory management counters (in human-readable form) into the channel argument.

print_string [Pervasives]

Print a string on standard output.

print_string [Format]

pp_print_string ppf s prints s in the current pretty-printing box.

print_tab [Format]

print_tab () emits a 'next' tabulation break hint: if not already set on a tabulation marker, the insertion point moves to the first tabulation marker on the right, or the pretty-printer splits the line and insertion point moves to the leftmost tabulation marker.

print_tbreak [Format]

print_tbreak nspaces offset emits a 'full' tabulation break hint.

printf [Printf]

Same as Printf.fprintf, but output on stdout.

printf [Format]

Same as fprintf above, but output on std_formatter.

prohibit [Dynlink]

prohibit units prohibits dynamically-linked units from referencing the units named in list units.

push [Stack]

push x s adds the element x at the top of stack s.

push [Queue]

push is a synonym for add.

Q
quick_stat [Gc]

Same as stat except that live_words, live_blocks, free_words, free_blocks, largest_free, and fragments are set to 0.

quote [Str]

Str.quote s returns a regexp string that matches exactly s and nothing else.

quote [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 [Pervasives]

Raise the given exception value

raise_notrace [Pervasives]

A faster version raise which does not record the backtrace.

raise_with_backtrace [Printexc]

Reraise the exception using the given raw_backtrace for the origin of the exception

randomize [MoreLabels.Hashtbl]
randomize [Hashtbl]

After a call to Hashtbl.randomize(), hash tables are created in randomized mode by default: Hashtbl.create returns randomized hash tables, unless the ~random:false optional parameter is given.

raw_backtrace_length [Printexc]

raw_backtrace_length bckt returns the number of slots in the backtrace bckt.

raw_backtrace_to_string [Printexc]

Return a string from a raw backtrace, in the same format Printexc.get_backtrace uses.

rcontains_from [StringLabels]

String.rcontains_from s stop c tests if character c appears in s before position stop+1.

rcontains_from [String]

String.rcontains_from s stop c tests if character c appears in s before position stop+1.

rcontains_from [BytesLabels]

rcontains_from s stop c tests if byte c appears in s before position stop+1.

rcontains_from [Bytes]

rcontains_from s stop c tests if byte c appears in s before position stop+1.

reachable_words [Obj]

Computes the total size (in words, including the headers) of all heap blocks accessible from the argument.

read_arg [Arg]

Arg.read_arg file reads newline-terminated command line arguments from file file.

read_arg0 [Arg]

Identical to Arg.read_arg but assumes null character terminated command line arguments.

read_float [Pervasives]

Flush standard output, then read one line from standard input and convert it to a floating-point number.

read_float_opt [Pervasives]

Flush standard output, then read one line from standard input and convert it to a floating-point number.

read_int [Pervasives]

Flush standard output, then read one line from standard input and convert it to an integer.

read_int_opt [Pervasives]

Same as read_int_opt, but returns None instead of raising.

read_key [Graphics]

Wait for a key to be pressed, and return the corresponding character.

read_line [Pervasives]

Flush standard output, then read characters from standard input until a newline character is encountered.

readdir [Sys]

Return the names of all files present in the given directory.

really_input [Pervasives]

really_input ic buf pos len reads len characters from channel ic, storing them in byte sequence buf, starting at character number pos.

really_input_string [Pervasives]

really_input_string ic len reads len characters from channel ic and returns them in a new string.

receive [Event]

receive ch returns the event consisting in receiving a value from the channel ch.

record_backtrace [Printexc]

Printexc.record_backtrace b turns recording of exception backtraces on (if b = true) or off (if b = false).

red [Graphics]
ref [Pervasives]

Return a fresh reference containing the given value.

regexp [Str]

Compile a regular expression.

regexp_case_fold [Str]

Same as regexp, but the compiled expression will match text in a case-insensitive way: uppercase and lowercase letters will be considered equivalent.

regexp_string [Str]

Str.regexp_string s returns a regular expression that matches exactly s and nothing else.

regexp_string_case_fold [Str]

Str.regexp_string_case_fold is similar to Str.regexp_string, but the regexp matches in a case-insensitive way.

register [Callback]

Callback.register n v registers the value v under the name n.

register_exception [Callback]

Callback.register_exception n exn registers the exception contained in the exception value exn under the name n.

register_printer [Printexc]

Printexc.register_printer fn registers fn as an exception printer.

rem [Nativeint]

Integer remainder.

rem [Int64]

Integer remainder.

rem [Int32]

Integer remainder.

remember_mode [Graphics]

Set remember mode on or off.

remove [Weak.S]

remove t x removes from t one instance of x.

remove [Sys]

Remove the given file name from the file system.

remove [Set.S]

remove x s returns a set containing all elements of s, except x.

remove [MoreLabels.Set.S]
remove [MoreLabels.Map.S]
remove [MoreLabels.Hashtbl.SeededS]
remove [MoreLabels.Hashtbl.S]
remove [MoreLabels.Hashtbl]
remove [Map.S]

remove x m returns a map containing the same bindings as m, except for x which is unbound in the returned map.

remove [Hashtbl.SeededS]
remove [Hashtbl.S]
remove [Hashtbl]

Hashtbl.remove tbl x removes the current binding of x in tbl, restoring the previous binding if it exists.

remove_assoc [ListLabels]

remove_assoc a l returns the list of pairs l without the first pair with key a, if any.

remove_assoc [List]

remove_assoc a l returns the list of pairs l without the first pair with key a, if any.

remove_assq [ListLabels]

Same as List.remove_assoc, but uses physical equality instead of structural equality to compare keys.

remove_assq [List]

Same as List.remove_assoc, but uses physical equality instead of structural equality to compare keys.

remove_extension [Filename]

Return the given file name without its extension, as defined in Filename.extension.

rename [Sys]

Rename a file.

rep [Uchar]

rep is U+FFFD, the replacement character.

replace [MoreLabels.Hashtbl.SeededS]
replace [MoreLabels.Hashtbl.S]
replace [MoreLabels.Hashtbl]
replace [Hashtbl.SeededS]
replace [Hashtbl.S]
replace [Hashtbl]

Hashtbl.replace tbl x y replaces the current binding of x in tbl by a binding of x to y.

replace_first [Str]

Same as Str.global_replace, except that only the first substring matching the regular expression is replaced.

replace_matched [Str]

replace_matched repl s returns the replacement text repl in which \1, \2, etc.

repr [Obj]
reset [MoreLabels.Hashtbl.SeededS]
reset [MoreLabels.Hashtbl.S]
reset [MoreLabels.Hashtbl]
reset [Hashtbl.SeededS]
reset [Hashtbl.S]
reset [Hashtbl]

Empty a hash table and shrink the size of the bucket table to its initial size.

reset [Buffer]

Empty the buffer and deallocate the internal byte sequence holding the buffer contents, replacing it with the initial internal byte sequence of length n that was allocated by Buffer.create n.

resize_window [Graphics]

Resize and erase the graphics window.

rev [ListLabels]

List reversal.

rev [List]

List reversal.

rev_append [ListLabels]

List.rev_append l1 l2 reverses l1 and concatenates it with l2.

rev_append [List]

List.rev_append l1 l2 reverses l1 and concatenates it to l2.

rev_map [ListLabels]

List.rev_map f l gives the same result as List.rev (List.map f l), but is tail-recursive and more efficient.

rev_map [List]

List.rev_map f l gives the same result as List.rev (List.map f l), but is tail-recursive and more efficient.

rev_map2 [ListLabels]

List.rev_map2 f l1 l2 gives the same result as List.rev (List.map2 f l1 l2), but is tail-recursive and more efficient.

rev_map2 [List]

List.rev_map2 f l1 l2 gives the same result as List.rev (List.map2 f l1 l2), but is tail-recursive and more efficient.

rgb [Graphics]

rgb r g b returns the integer encoding the color with red component r, green component g, and blue component b.

rhs_end [Parsing]
rhs_end_pos [Parsing]

Same as rhs_end, but return a position instead of an offset.

rhs_start [Parsing]

Same as Parsing.symbol_start and Parsing.symbol_end, but return the offset of the string matching the nth item on the right-hand side of the rule, where n is the integer parameter to rhs_start and rhs_end.

rhs_start_pos [Parsing]

Same as rhs_start, but return a position instead of an offset.

rindex [StringLabels]

String.rindex s c returns the index of the last occurrence of character c in string s.

rindex [String]

String.rindex s c returns the index of the last occurrence of character c in string s.

rindex [BytesLabels]

rindex s c returns the index of the last occurrence of byte c in s.

rindex [Bytes]

rindex s c returns the index of the last occurrence of byte c in s.

rindex_from [StringLabels]

String.rindex_from s i c returns the index of the last occurrence of character c in string s before position i+1.

rindex_from [String]

String.rindex_from s i c returns the index of the last occurrence of character c in string s before position i+1.

rindex_from [BytesLabels]

rindex_from s i c returns the index of the last occurrence of byte c in s before position i+1.

rindex_from [Bytes]

rindex_from s i c returns the index of the last occurrence of byte c in s before position i+1.

rindex_from_opt [StringLabels]

String.rindex_from_opt s i c returns the index of the last occurrence of character c in string s before position i+1 or None if c does not occur in s before position i+1.

rindex_from_opt [String]

String.rindex_from_opt s i c returns the index of the last occurrence of character c in string s before position i+1 or None if c does not occur in s before position i+1.

rindex_from_opt [BytesLabels]

rindex_from_opt s i c returns the index of the last occurrence of byte c in s before position i+1 or None if c does not occur in s before position i+1.

rindex_from_opt [Bytes]

rindex_from_opt s i c returns the index of the last occurrence of byte c in s before position i+1 or None if c does not occur in s before position i+1.

rindex_opt [StringLabels]

String.rindex_opt s c returns the index of the last occurrence of character c in string s, or None if c does not occur in s.

rindex_opt [String]

String.rindex_opt s c returns the index of the last occurrence of character c in string s, or None if c does not occur in s.

rindex_opt [BytesLabels]

rindex_opt s c returns the index of the last occurrence of byte c in s or None if c does not occur in s.

rindex_opt [Bytes]

rindex_opt s c returns the index of the last occurrence of byte c in s or None if c does not occur in s.

rlineto [Graphics]

Draw a line with endpoints the current point and the current point translated of the given vector, and move the current point to this point.

rmoveto [Graphics]

rmoveto dx dy translates the current point by the given vector.

runtime_parameters [Sys]

Return the value of the runtime parameters, in the same format as the contents of the OCAMLRUNPARAM environment variable.

runtime_variant [Sys]

Return the name of the runtime variant the program is running on.

runtime_warnings_enabled [Sys]

Return whether runtime warnings are currently enabled.

S
save_and_close [Spacetime.Series]

save_and_close series writes information into series required for interpreting the snapshots that series contains and then closes the series file.

save_event [Spacetime.Series]

save_event writes an event, which is an arbitrary string, into the given series file.

save_event_for_automatic_snapshots [Spacetime]

Like Spacetime.Series.save_event, but writes to the automatic snapshot file.

scanf [Scanf]

Same as Scanf.bscanf, but reads from the predefined formatted input channel Scanf.Scanning.stdin that is connected to Pervasives.stdin.

search_backward [Str]

search_backward r s last searches the string s for a substring matching the regular expression r.

search_forward [Str]

search_forward r s start searches the string s for a substring matching the regular expression r.

seeded_hash [MoreLabels.Hashtbl]
seeded_hash [Hashtbl]

A variant of Hashtbl.hash that is further parameterized by an integer seed.

seeded_hash_param [MoreLabels.Hashtbl]
seeded_hash_param [Hashtbl]

A variant of Hashtbl.hash_param that is further parameterized by an integer seed.

seek_in [Pervasives.LargeFile]
seek_in [Pervasives]

seek_in chan pos sets the current reading position to pos for channel chan.

seek_out [Pervasives.LargeFile]
seek_out [Pervasives]

seek_out chan pos sets the current writing position to pos for channel chan.

select [Event]

``Synchronize'' on an alternative of events.

self_init [Random]

Initialize the generator with a random seed chosen in a system-dependent way.

send [Event]

send ch v returns the event consisting in sending the value v over the channel ch.

set [Weak]

Weak.set ar n (Some el) sets the nth cell of ar to be a (full) pointer to el; Weak.set ar n None sets the nth cell of ar to empty.

set [StringLabels]

String.set s n c modifies byte sequence s in place, replacing the byte at index n with c.

set [String]

String.set s n c modifies byte sequence s in place, replacing the byte at index n with c.

set [Gc]

set r changes the GC parameters according to the control record r.

set [BytesLabels]

set s n c modifies s in place, replacing the byte at index n with c.

set [Bytes]

set s n c modifies s in place, replacing the byte at index n with c.

set [ArrayLabels]

Array.set a n x modifies array a in place, replacing element number n with x.

set [Array]

Array.set a n x modifies array a in place, replacing element number n with x.

set_all_formatter_output_functions [Format]
set_binary_mode_in [Pervasives]

set_binary_mode_in ic true sets the channel ic to binary mode: no translations take place during input.

set_binary_mode_out [Pervasives]

set_binary_mode_out oc true sets the channel oc to binary mode: no translations take place during output.

set_color [Graphics]

Set the current drawing color.

set_data [Obj.Ephemeron]
set_data [Ephemeron.Kn]
set_data [Ephemeron.K2]
set_data [Ephemeron.K1]

Ephemeron.K1.set_data eph el sets the data of eph to be a (full) data to el

set_double_field [Obj]
set_ellipsis_text [Format]

Set the text of the ellipsis printed when too many pretty-printing boxes are open (a single dot, ., by default).

set_field [Obj]

When using flambda:

set_font [Graphics]

Set the font used for drawing text.

set_formatter_out_channel [Format]

Redirect the standard pretty-printer output to the given channel.

set_formatter_out_functions [Format]

pp_set_formatter_out_functions ppf out_funs Set all the pretty-printer output functions of ppf to those of argument out_funs,

set_formatter_output_functions [Format]

pp_set_formatter_output_functions ppf out flush redirects the standard pretty-printer output functions to the functions out and flush.

set_formatter_tag_functions [Format]

pp_set_formatter_tag_functions ppf tag_funs changes the meaning of opening and closing semantic tag operations to use the functions in tag_funs when printing on ppf.

set_key [Obj.Ephemeron]
set_key [Ephemeron.Kn]
set_key [Ephemeron.K1]

Ephemeron.K1.set_key eph el sets the key of eph to be a (full) key to el

set_key1 [Ephemeron.K2]
set_key2 [Ephemeron.K2]
set_line_width [Graphics]

Set the width of points and lines drawn with the functions above.

set_margin [Format]

pp_set_margin ppf d sets the right margin to d (in characters): the pretty-printer splits lines that overflow the right margin according to the break hints given.

set_mark_tags [Format]

pp_set_mark_tags ppf b turns on or off the tag-marking operations.

set_max_boxes [Format]

pp_set_max_boxes ppf max sets the maximum number of pretty-printing boxes simultaneously open.

set_max_indent [Format]

pp_set_max_indent ppf d sets the maximum indentation limit of lines to d (in characters): once this limit is reached, new pretty-printing boxes are rejected to the left, if they do not fit on the current line.

set_print_tags [Format]

pp_set_print_tags ppf b turns on or off the tag-printing operations.

set_signal [Sys]

Same as Sys.signal but return value is ignored.

set_state [Random]

Set the state of the generator used by the basic functions.

set_tab [Format]

Sets a tabulation marker at current insertion point.

set_tag [Obj]
set_tags [Format]

pp_set_tags ppf b turns on or off the treatment of semantic tags (default is off).

set_temp_dir_name [Filename]

Change the temporary directory returned by Filename.get_temp_dir_name and used by Filename.temp_file and Filename.open_temp_file.

set_text_size [Graphics]

Set the character size used for drawing text.

set_trace [Parsing]

Control debugging support for ocamlyacc-generated parsers.

set_uncaught_exception_handler [Printexc]

Printexc.set_uncaught_exception_handler fn registers fn as the handler for uncaught exceptions.

set_window_title [Graphics]

Set the title of the graphics window.

shift_left [Nativeint]

Nativeint.shift_left x y shifts x to the left by y bits.

shift_left [Int64]

Int64.shift_left x y shifts x to the left by y bits.

shift_left [Int32]

Int32.shift_left x y shifts x to the left by y bits.

shift_right [Nativeint]

Nativeint.shift_right x y shifts x to the right by y bits.

shift_right [Int64]

Int64.shift_right x y shifts x to the right by y bits.

shift_right [Int32]

Int32.shift_right x y shifts x to the right by y bits.

shift_right_logical [Nativeint]

Nativeint.shift_right_logical x y shifts x to the right by y bits.

shift_right_logical [Int64]

Int64.shift_right_logical x y shifts x to the right by y bits.

shift_right_logical [Int32]

Int32.shift_right_logical x y shifts x to the right by y bits.

sigabrt [Sys]

Abnormal termination

sigalrm [Sys]

Timeout

sigbus [Sys]

Bus error

sigchld [Sys]

Child process terminated

sigcont [Sys]

Continue

sigfpe [Sys]

Arithmetic exception

sighup [Sys]

Hangup on controlling terminal

sigill [Sys]

Invalid hardware instruction

sigint [Sys]

Interactive interrupt (ctrl-C)

sigkill [Sys]

Termination (cannot be ignored)

signal [Sys]

Set the behavior of the system on receipt of a given signal.

sigpipe [Sys]

Broken pipe

sigpoll [Sys]

Pollable event

sigprof [Sys]

Profiling interrupt

sigquit [Sys]

Interactive termination

sigsegv [Sys]

Invalid memory reference

sigstop [Sys]

Stop

sigsys [Sys]

Bad argument to routine

sigterm [Sys]

Termination

sigtrap [Sys]

Trace/breakpoint trap

sigtstp [Sys]

Interactive stop

sigttin [Sys]

Terminal read from background process

sigttou [Sys]

Terminal write from background process

sigurg [Sys]

Urgent condition on socket

sigusr1 [Sys]

Application-defined signal 1

sigusr2 [Sys]

Application-defined signal 2

sigvtalrm [Sys]

Timeout in virtual time

sigxcpu [Sys]

Timeout in cpu time

sigxfsz [Sys]

File size limit exceeded

sin [Pervasives]

Sine.

singleton [Set.S]

singleton x returns the one-element set containing only x.

singleton [MoreLabels.Set.S]
singleton [MoreLabels.Map.S]
singleton [Map.S]

singleton x y returns the one-element map that contains a binding y for x.

sinh [Pervasives]

Hyperbolic sine.

size [Obj]
size [Nativeint]

The size in bits of a native integer.

size_x [Graphics]
size_y [Graphics]

Return the size of the graphics window.

snd [Pervasives]

Return the second component of a pair.

sort [ListLabels]

Sort a list in increasing order according to a comparison function.

sort [List]

Sort a list in increasing order according to a comparison function.

sort [ArrayLabels]

Sort an array in increasing order according to a comparison function.

sort [Array]

Sort an array in increasing order according to a comparison function.

sort_uniq [ListLabels]

Same as List.sort, but also remove duplicates.

sort_uniq [List]

Same as List.sort, but also remove duplicates.

sound [Graphics]

sound freq dur plays a sound at frequency freq (in hertz) for a duration dur (in milliseconds).

split [Str]

split r s splits s into substrings, taking as delimiters the substrings that match r, and returns the list of substrings.

split [Set.S]

split x s returns a triple (l, present, r), where l is the set of elements of s that are strictly less than x; r is the set of elements of s that are strictly greater than x; present is false if s contains no element equal to x, or true if s contains an element equal to x.

split [MoreLabels.Set.S]
split [MoreLabels.Map.S]
split [Map.S]

split x m returns a triple (l, data, r), where l is the map with all the bindings of m whose key is strictly less than x; r is the map with all the bindings of m whose key is strictly greater than x; data is None if m contains no binding for x, or Some v if m binds v to x.

split [ListLabels]

Transform a list of pairs into a pair of lists: split [(a1,b1); ...; (an,bn)] is ([a1; ...; an], [b1; ...; bn]).

split [List]

Transform a list of pairs into a pair of lists: split [(a1,b1); ...; (an,bn)] is ([a1; ...; an], [b1; ...; bn]).

split_delim [Str]

Same as Str.split but occurrences of the delimiter at the beginning and at the end of the string are recognized and returned as empty strings in the result.

split_on_char [StringLabels]

String.split_on_char sep s returns the list of all (possibly empty) substrings of s that are delimited by the sep character.

split_on_char [String]

String.split_on_char sep s returns the list of all (possibly empty) substrings of s that are delimited by the sep character.

sprintf [Printf]

Same as Printf.fprintf, but instead of printing on an output channel, return a string containing the result of formatting the arguments.

sprintf [Format]

Same as printf above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments.

sqrt [Pervasives]

Square root.

sqrt [Complex]

Square root.

sscanf [Scanf]

Same as Scanf.bscanf, but reads from the given string.

sscanf_format [Scanf]

Same as Scanf.bscanf_format, but reads from the given string.

stable_sort [ListLabels]

Same as List.sort, but the sorting algorithm is guaranteed to be stable (i.e.

stable_sort [List]

Same as List.sort, but the sorting algorithm is guaranteed to be stable (i.e.

stable_sort [ArrayLabels]

Same as Array.sort, but the sorting algorithm is stable (i.e.

stable_sort [Array]

Same as Array.sort, but the sorting algorithm is stable (i.e.

stat [Gc]

Return the current values of the memory management counters in a stat record.

stats [Weak.S]

Return statistics on the table.

stats [MoreLabels.Hashtbl.SeededS]
stats [MoreLabels.Hashtbl.S]
stats [MoreLabels.Hashtbl]
stats [Hashtbl.SeededS]
stats [Hashtbl.S]
stats [Hashtbl]

Hashtbl.stats tbl returns statistics about the table tbl: number of buckets, size of the biggest bucket, distribution of buckets by size.

stats_alive [Ephemeron.SeededS]

same as Hashtbl.SeededS.stats but only count the alive bindings

stats_alive [Ephemeron.S]

same as Hashtbl.SeededS.stats but only count the alive bindings

std_formatter [Format]

The standard formatter to write to standard output.

stdbuf [Format]

The string buffer in which str_formatter writes.

stderr [Pervasives]

The standard error output for the process.

stdib [Scanf.Scanning]

A deprecated alias for Scanf.Scanning.stdin, the scanning buffer reading from Pervasives.stdin.

stdin [Scanf.Scanning]

The standard input notion for the Scanf module.

stdin [Pervasives]

The standard input for the process.

stdout [Pervasives]

The standard output for the process.

str_formatter [Format]

A formatter to output to the Format.stdbuf string buffer.

string [Digest]

Return the digest of the given string.

string_after [Str]

string_after s n returns the substring of all characters of s that follow position n (including the character at position n).

string_before [Str]

string_before s n returns the substring of all characters of s that precede position n (excluding the character at position n).

string_match [Str]

string_match r s start tests whether a substring of s that starts at position start matches the regular expression r.

string_of_bool [Pervasives]

Return the string representation of a boolean.

string_of_float [Pervasives]

Return the string representation of a floating-point number.

string_of_format [Pervasives]

Converts a format string into a string.

string_of_int [Pervasives]

Return the string representation of an integer, in decimal.

string_partial_match [Str]

Similar to Str.string_match, but also returns true if the argument string is a prefix of a string that matches.

string_tag [Obj]
sub [StringLabels]

String.sub s start len returns a fresh string of length len, containing the substring of s that starts at position start and has length len.

sub [String]

String.sub s start len returns a fresh string of length len, containing the substring of s that starts at position start and has length len.

sub [Nativeint]

Subtraction.

sub [Int64]

Subtraction.

sub [Int32]

Subtraction.

sub [Complex]

Subtraction

sub [BytesLabels]

sub s start len returns a new byte sequence of length len, containing the subsequence of s that starts at position start and has length len.

sub [Bytes]

sub s start len returns a new byte sequence of length len, containing the subsequence of s that starts at position start and has length len.

sub [Buffer]

Buffer.sub b off len returns a copy of len bytes from the current contents of the buffer b, starting at offset off.

sub [ArrayLabels]

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 [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_string [BytesLabels]

Same as sub but return a string instead of a byte sequence.

sub_string [Bytes]

Same as sub but return a string instead of a byte sequence.

subbytes [Digest]

Digest.subbytes s ofs len returns the digest of the subsequence of s starting at index ofs and containing len bytes.

subset [Set.S]

subset s1 s2 tests whether the set s1 is a subset of the set s2.

subset [MoreLabels.Set.S]
substitute_first [Str]

Same as Str.global_substitute, except that only the first substring matching the regular expression is replaced.

substring [Digest]

Digest.substring s ofs len returns the digest of the substring of s starting at index ofs and containing len characters.

succ [Uchar]

succ u is the scalar value after u in the set of Unicode scalar values.

succ [Pervasives]

succ x is x + 1.

succ [Nativeint]

Successor.

succ [Int64]

Successor.

succ [Int32]

Successor.

symbol_end [Parsing]
symbol_end_pos [Parsing]

Same as symbol_end, but return a position instead of an offset.

symbol_start [Parsing]

symbol_start and Parsing.symbol_end are to be called in the action part of a grammar rule only.

symbol_start_pos [Parsing]

Same as symbol_start, but return a position instead of an offset.

sync [Event]

``Synchronize'' on an event: offer all the communication possibilities specified in the event to the outside world, and block until one of the communications succeed.

synchronize [Graphics]

Synchronize the backing store and the on-screen window, by copying the contents of the backing store onto the graphics window.

T
tag [Obj]
take [Spacetime.Snapshot]

take series takes a snapshot of the profiling annotations on the values in the minor and major heaps, together with GC stats, and write the result to the series file.

take [Queue]

take q removes and returns the first element in queue q, or raises Queue.Empty if the queue is empty.

tan [Pervasives]

Tangent.

tanh [Pervasives]

Hyperbolic tangent.

temp_dir_name [Filename]

The name of the initial temporary directory: Under Unix, the value of the TMPDIR environment variable, or "/tmp" if the variable is not set.

temp_file [Filename]

temp_file prefix suffix returns the name of a fresh temporary file in the temporary directory.

text_size [Graphics]

Return the dimensions of the given text, if it were drawn with the current font and size.

time [Sys]

Return the processor time, in seconds, used by the program since the beginning of execution.

tl [ListLabels]

Return the given list without its first element.

tl [List]

Return the given list without its first element.

to_buffer [Marshal]

Marshal.to_buffer buff ofs len v flags marshals the value v, storing its byte representation in the sequence buff, starting at index ofs, and writing at most len bytes.

to_bytes [Marshal]

Marshal.to_bytes v flags returns a byte sequence containing the representation of v.

to_bytes [Buffer]

Return a copy of the current contents of the buffer.

to_channel [Marshal]

Marshal.to_channel chan v flags writes the representation of v on channel chan.

to_char [Uchar]

to_char u is u as an OCaml latin1 character.

to_float [Nativeint]

Convert the given native integer to a floating-point number.

to_float [Int64]

Convert the given 64-bit integer to a floating-point number.

to_float [Int32]

Convert the given 32-bit integer to a floating-point number.

to_hex [Digest]

Return the printable hexadecimal representation of the given digest.

to_int [Uchar]

to_int u is u as an integer.

to_int [Nativeint]

Convert the given native integer (type nativeint) to an integer (type int).

to_int [Int64]

Convert the given 64-bit integer (type int64) to an integer (type int).

to_int [Int32]

Convert the given 32-bit integer (type int32) to an integer (type int).

to_int32 [Nativeint]

Convert the given native integer to a 32-bit integer (type int32).

to_int32 [Int64]

Convert the given 64-bit integer (type int64) to a 32-bit integer (type int32).

to_list [ArrayLabels]

Array.to_list a returns the list of all the elements of a.

to_list [Array]

Array.to_list a returns the list of all the elements of a.

to_nativeint [Int64]

Convert the given 64-bit integer (type int64) to a native integer.

to_string [Printexc]

Printexc.to_string e returns a string representation of the exception e.

to_string [Nativeint]

Return the string representation of its argument, in decimal.

to_string [Marshal]

Same as to_bytes but return the result as a string instead of a byte sequence.

to_string [Int64]

Return the string representation of its argument, in decimal.

to_string [Int32]

Return the string representation of its argument, in signed decimal.

to_string [BytesLabels]

Return a new string that contains the same bytes as the given byte sequence.

to_string [Bytes]

Return a new string that contains the same bytes as the given byte sequence.

top [Stack]

top s returns the topmost element in stack s, or raises Stack.Empty if the stack is empty.

top [Queue]

top is a synonym for peek.

total_size [Marshal]
transfer [Queue]

transfer q1 q2 adds all of q1's elements at the end of the queue q2, then clears q1.

transp [Graphics]

In matrices of colors, this color represent a 'transparent' point: when drawing the corresponding image, all pixels on the screen corresponding to a transparent pixel in the image will not be modified, while other points will be set to the color of the corresponding point in the image.

trim [StringLabels]

Return a copy of the argument, without leading and trailing whitespace.

trim [String]

Return a copy of the argument, without leading and trailing whitespace.

trim [BytesLabels]

Return a copy of the argument, without leading and trailing whitespace.

trim [Bytes]

Return a copy of the argument, without leading and trailing whitespace.

truncate [Pervasives]
truncate [Obj]
truncate [Buffer]

truncate b len truncates the length of b to len Note: the internal byte sequence is not shortened.

try_lock [Mutex]

Same as Mutex.lock, but does not suspend the calling thread if the mutex is already locked: just return false immediately in that case.

U
unaligned_tag [Obj]
uncapitalize [StringLabels]

Return a copy of the argument, with the first character set to lowercase, using the ISO Latin-1 (8859-1) character set..

uncapitalize [String]

Return a copy of the argument, with the first character set to lowercase, using the ISO Latin-1 (8859-1) character set..

uncapitalize [BytesLabels]

Return a copy of the argument, with the first character set to lowercase, using the ISO Latin-1 (8859-1) character set..

uncapitalize [Bytes]

Return a copy of the argument, with the first character set to lowercase, using the ISO Latin-1 (8859-1) character set..

uncapitalize_ascii [StringLabels]

Return a copy of the argument, with the first character set to lowercase, using the US-ASCII character set.

uncapitalize_ascii [String]

Return a copy of the argument, with the first character set to lowercase, using the US-ASCII character set.

uncapitalize_ascii [BytesLabels]

Return a copy of the argument, with the first character set to lowercase, using the US-ASCII character set.

uncapitalize_ascii [Bytes]

Return a copy of the argument, with the first character set to lowercase, using the US-ASCII character set.

unescaped [Scanf]

unescaped s return a copy of s with escape sequences (according to the lexical conventions of OCaml) replaced by their corresponding special characters.

union [Set.S]

Set union.

union [MoreLabels.Set.S]
union [MoreLabels.Map.S]
union [Map.S]

union f m1 m2 computes a map whose keys is the union of keys of m1 and of m2.

unix [Sys]

True if Sys.os_type = "Unix".

unlock [Mutex]

Unlock the given mutex.

unmarshal [Obj]
unsafe_of_string [Bytes]

Unsafely convert a shared string to a byte sequence that should not be mutated.

unsafe_to_string [Bytes]

Unsafely convert a byte sequence into a string.

unset_data [Obj.Ephemeron]
unset_data [Ephemeron.Kn]
unset_data [Ephemeron.K2]
unset_data [Ephemeron.K1]

Ephemeron.K1.unset_data eph el sets the key of eph to be an empty key.

unset_key [Obj.Ephemeron]
unset_key [Ephemeron.Kn]
unset_key [Ephemeron.K1]

Ephemeron.K1.unset_key eph el sets the key of eph to be an empty key.

unset_key1 [Ephemeron.K2]
unset_key2 [Ephemeron.K2]
update [MoreLabels.Map.S]
update [Map.S]

update x f m returns a map containing the same bindings as m, except for the binding of x.

uppercase [StringLabels]

Return a copy of the argument, with all lowercase letters translated to uppercase, including accented letters of the ISO Latin-1 (8859-1) character set.

uppercase [String]

Return a copy of the argument, with all lowercase letters translated to uppercase, including accented letters of the ISO Latin-1 (8859-1) character set.

uppercase [Char]

Convert the given character to its equivalent uppercase character, using the ISO Latin-1 (8859-1) character set.

uppercase [BytesLabels]

Return a copy of the argument, with all lowercase letters translated to uppercase, including accented letters of the ISO Latin-1 (8859-1) character set.

uppercase [Bytes]

Return a copy of the argument, with all lowercase letters translated to uppercase, including accented letters of the ISO Latin-1 (8859-1) character set.

uppercase_ascii [StringLabels]

Return a copy of the argument, with all lowercase letters translated to uppercase, using the US-ASCII character set.

uppercase_ascii [String]

Return a copy of the argument, with all lowercase letters translated to uppercase, using the US-ASCII character set.

uppercase_ascii [Char]

Convert the given character to its equivalent uppercase character, using the US-ASCII character set.

uppercase_ascii [BytesLabels]

Return a copy of the argument, with all lowercase letters translated to uppercase, using the US-ASCII character set.

uppercase_ascii [Bytes]

Return a copy of the argument, with all lowercase letters translated to uppercase, using the US-ASCII character set.

usage [Arg]

Arg.usage speclist usage_msg prints to standard error an error message that includes the list of valid options.

usage_string [Arg]

Returns the message that would have been printed by Arg.usage, if provided with the same parameters.

W
wait_next_event [Graphics]

Wait until one of the events specified in the given event list occurs, and return the status of the mouse and keyboard at that time.

white [Graphics]
win32 [Sys]

True if Sys.os_type = "Win32".

window_id [GraphicsX11]

Return the unique identifier of the OCaml graphics window.

word_size [Sys]

Size of one word on the machine currently executing the OCaml program, in bits: 32 or 64.

wrap [Event]

wrap ev fn returns the event that performs the same communications as ev, then applies the post-processing function fn on the return value.

wrap_abort [Event]

wrap_abort ev fn returns the event that performs the same communications as ev, but if it is not selected the function fn is called after the synchronization.

write_arg [Arg]

Arg.write_arg file args writes the arguments args newline-terminated into the file file.

write_arg0 [Arg]

Identical to Arg.write_arg but uses the null character for terminator instead of newline.

Y
yellow [Graphics]
Z
zero [Nativeint]

The native integer 0.

zero [Int64]

The 64-bit integer 0.

zero [Int32]

The 32-bit integer 0.

zero [Complex]

The complex number 0.