(%%) [Composeoper] |
(g %% f) x is the same as f(g(x)).
|
(%) [Composeoper] |
Calling (f % g) x is equivolent to calling f(g(x)).
|
(/+) [Hashtbloper] |
Add (merge) two hashes.
|
(//) [Hashtbloper] |
Returns a new hash that has the given (key, value) pair added to the hash
passed in.
|
(/>) [Hashtbloper] |
Shorcut to get an element from a hash.
|
(|$) [Sliceoper] |
String application operator.
|
(|$>) [Sliceoper] |
String operator.
|
(|&) [Sliceoper] |
Array application operator.
|
(|&>) [Sliceoper] |
Array operator.
|
(|>) [Sliceoper] |
|> is the slice composition operator, and is designed to work solely
in conjunction with one of the slice application operators below.
|
(|@) [Sliceoper] |
List application operator.
|
(|@>) [Sliceoper] |
List operator.
|
A | |
abspath [Unixutil] |
Returns the absolute path of name.
|
abspath [Fileutil] | returns the absolute path of filename.
|
add [AnyDBM] |
Adds the key/data pair given.
|
alpha [ABNF_core] |
A-Z / a-z
|
array_slice [Slice] | |
B | |
bit [ABNF_core] |
"0" / "1"
|
C | |
char [ABNF_core] |
%x01-7F, any 7-bit ASCII character except for %x00
|
chr [BNFparseutil] |
Returns the character given by the specified integer; an alias for
Char.chr .
|
close [AnyDBM] |
Close the connection to the database, saving any
unsaved changes.
|
compose [Compose] |
Calling compose f g x is equivolent to calling f(g(x)).
|
convkeys [Hashtblutil] |
This function is used to adjust the keys in a hash table.
|
countline [Lexingutil] |
countline is useful if you desire accurate line numbers for your error
messages.
|
cr [ABNF_core] |
carriage return, %x0D
|
crlf [ABNF_core] |
CR/LF, Internet standard newline
|
ctl [ABNF_core] |
controls: %x00-1F/ %x7F
|
D | |
digit [ABNF_core] |
digits: 0-9
|
dquote [ABNF_core] |
Double quote
|
drop [Streamutil] |
Removes the first n elements from the start of the given stream.
|
drop [Listutil] |
This function removes the first n elements from the given list and
returns the remaining elements.
|
E | |
eof [BNFparseutil] |
Useful to testing to see if the end-of-file has been reached.
|
exists [Unixutil] |
Returns true if the specified file exists; false otherwise.
|
F | |
filter [Streamutil] |
Given a function, returns a new stream with all the elements of the
original stream for which func returns true.
|
find [AnyDBM] |
Returns the data associated with the given key or raises
Not_found if the key is not present.
|
flags_new_to_old [AnyDBM.AnyDBMUtils] |
Given flags of anydbm_open_flag, return old-style open_flag
|
flags_new_to_open [AnyDBM.AnyDBMUtils] |
Given flags of the new style, return flags for Pervasives open_gen
functions.
|
flags_old_to_new [AnyDBM.AnyDBMUtils] |
Given flags of the style open_flag, return a new-style anydbm_open_flag
|
fold_directory [Unixutil] |
Folds over the specified directory
|
fold_left [Streamutil] |
Given a function and an initial argument, calls the function on
each element in the stream.
|
G | |
generic_slice [Slice] |
This function is used to create a new slice function.
|
getfirstline [Fileutil] |
Opens file given, reads the first line, closes the file, and returns
that line.
|
getlines [Fileutil] |
Opens file given, reads all lines, closes the file, and returns
a list of those lines.
|
H | |
hexdig [ABNF_core] |
Hex digits: 0-9, A-F, case-insensitive
|
htab [ABNF_core] |
Horizontal tab
|
I | |
ichan_to_strhash [Hashtblutil] |
Reads from the given file, returning a new hash table representing its
contents.
|
insens [BNFparseutil] |
Default value for case-insensitive comparisons.
|
isdir [Unixutil] |
Returns true if the specified file exists and is a directory.
|
items [Hashtblutil] |
Calling
items hash will return a list of pairs representing all
the (key, value) pairs present in the hash.
|
iter [AnyDBM] | iter f db applies f to each (key, data) pair in the database db.
|
J | |
join [Strutil] |
Makes one output string from the given string list by inserting
the delim between each element.
|
K | |
keys [Hashtblutil] |
Calling
keys hash will return a list of all the keys contained in
that hash.
|
L | |
length [Hashtblutil] |
Calling
length hash will return the number of keys present in the
hash.
|
lf [ABNF_core] |
Linefeed, %x0A
|
list_of_dir [Unixutil] |
Returns a list of all entries, exclusive of "." and "..", in the
specified directory.
|
list_slice [Slice] | |
lstrip [Strutil] |
Same as strip, but applies only to the left side of the string.
|
lwsp [ABNF_core] |
Linear white space (past newline),
*(WSP / CRLF WSP)
|
M | |
map [Streamutil] |
Given a function, returns a new stream with the results of func
applied to each element.
|
map [Hashtblutil] |
Calling
map func hash will call func key value for each key/value
pair represented in the hash, and return a list of the return values from
func.
|
map_stream [Streamutil] |
Given a function, returns a new stream with the results of func
applied to each element.
|
merge [Hashtblutil] |
Calling
merge oldhash newhash will iterate over the newhash.
|
mstring [BNFparseutil] |
Stream parser: find the given string in a character string.
|
O | |
octet [ABNF_core] |
8-bit data
|
of_channel_blocks [Streamutil] |
Given an input file descriptor and a blocksize, generates a stream
that yields blocks of the given blocksize.
|
of_channel_lines [Streamutil] |
Given an input file descriptor, generates a stream that yields
each line of the input file.
|
opendbm [AnyDBM_String] | |
optparse [Streamutil] |
This function is useful for parsing zero or more occurances of a certain
element.
|
optparse [BNFparseutil] |
This function is useful for parsing zero or more occurances of a certain
element.
|
optparse_1 [Streamutil] |
Same as optparse, but forces to match at least once.
|
optparse_1 [BNFparseutil] |
Same as optparse, but forces to match at least once.
|
optparse_1_folded [Streamutil] |
Used to do something that happens once or more, and folds the results.
|
optparse_1_string [Streamutil] |
Utility function used to generate strings; equivolent to
optparse_1_folded func (^) "" args
|
output_chars [Streamutil] |
Given a stream of characters (such as created with
Stream.of_channel ), output the characters representing each element from
the stream.
|
output_chars [Listutil] |
Given a list of chars, output the characters representing each element
from the list.
|
output_lines [Streamutil] |
Given a stream of lines (such as created with
Streamutil.of_channel_lines ,
output a line containing each element from the stream.
|
output_lines [Listutil] |
Given a list of lines, output a line containing each element from the list.
|
R | |
raise_syntax_error [Lexingutil] |
This function raises a
Lexingutil.ParsingSyntaxError .
|
range [BNFparseutil] |
Stream parser: find a single character in the given range.
|
range_n [BNFparseutil] |
Stream parser: find any character NOT in the given range.
|
recurse_cmd [Unixutil] | will call on every entry
in or beneath name, which may specify a directory or a file.
|
recurse_list [Unixutil] |
Same as
Unixutil.recurse_stream , but generates a list instead.
|
recurse_stream [Unixutil] | will create a stream that yields a (stats, name)
pair for every entry beneath the given filename (including the
filename itself.
|
remove [AnyDBM] |
Remove the key/value pair with the given key.
|
remove_assoc_all [Listutil] |
Calling
remove_assoc_all l key will remove all pairs from list l
with a key matching the given value, and returns the result.
|
replace [Listutil] |
Calling
replace l key value will add a (key, value) pair to the list.
|
replace [AnyDBM] |
Add the key/value pair to the database, replacing any existing
pair with the same key.
|
rm [Unixutil] |
Remove files or directories.
|
rstrip [Strutil] |
Same as strip, but applies only to the right side of the string.
|
S | |
s_and [BNFparseutil] |
Used to ensure that all conditions are met at the same point on a stream.
|
slice_end [Slice] |
A special value that signifies the end of the list.
|
slice_of_pair [Slice] |
This function takes an integer (start, end) tuple and returns
a slie_t.
|
sp [ABNF_core] |
Space
|
split [Strutil] |
Splits a string into multiple component strings.
|
split_ws [Strutil] |
Splits a string deliminted by whitespace into multiple component
strings.
|
str_of_stritem [Hashtblutil] |
Converts a single item of a (string, string) Hashtbl.t to a string
representation.
|
strhash_to_ochan [Hashtblutil] |
Writes the given hash table out to the specified output channel.
|
string_of_char [Strutil] |
Given a char, returns a one-character string composed of that character.
|
string_of_charlist [Strutil] |
Given a list of characters, returns a string composed of the characters
in that list.
|
string_slice [Slice] | |
strip [Strutil] |
Removes any whitespace characters that are present at the start or
end of a string.
|
stritem_of_str [Hashtblutil] |
Returns a (key, value) pair generated by parsing a string representation.
|
sub [Listutil] |
This function behaves identically to the standard Array.sub or String.sub
functions, but operates on lists.
|
T | |
take [Streamutil] |
Returns a finite stream representing the first n elements from
the given stream.
|
take [Listutil] |
This function returns the first n elements of the given list.
|
to_list [Streamutil] |
Converts a stream to a list.
|
trunc [Strutil] |
Given a string and a length, truncates the string to have, at most,
len characters.
|
V | |
values [Hashtblutil] |
Calling
values hash will return a list of all the valies contained
in that hash.
|
vchar [ABNF_core] |
Visible (printing) characters
|
W | |
wsp [ABNF_core] |
White space,
SP / HTAB
|