Index of values


($) [Composeoper]
This will apply a function.
(%%) [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 [Fileutil]
abspath filename
returns the absolute path of filename.
array_slice [Slice]

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

D
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
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.
fold_directory [Unixutil]
Folds over the specified directory

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.

I
items [Hashtblutil]
Calling items hash will return a list of pairs representing all the (key, value) pairs present in the hash.

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

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.

O
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.
optparse [Streamutil]
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_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.
recurse_cmd [Unixutil]
recurse_cmd func name
will call
func stats name
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]
recurse_stream name
will create a stream that yields a (stats, name) pair for every entry beneath the given filename (including the filename itself.
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.
rm [Unixutil]
Remove files or directories.
rstrip [Strutil]
Same as strip, but applies only to the right side of the string.

S
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.
split [Strutil]
Splits a string into multiple component strings.
split_ws [Strutil]
Splits a string deliminted by whitespace into multiple component strings.
string_of_char [Strutil]
Given a char, returns a one-character string composed of that character.
string_slice [Slice]
strip [Strutil]
Removes any whitespace characters that are present at the start or end of a string.
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.

V
values [Hashtblutil]
Calling values hash will return a list of all the valies contained in that hash.