Index of values

( * ) [UtilsLib.Floats.Infix]
( ** ) [UtilsLib.Floats.Infix]
( **. ) [UtilsLib.Floats.InfixDot]
( *. ) [UtilsLib.Floats.InfixDot]
(%) [UtilsLib.Floats.Infix]
(%.) [UtilsLib.Floats.InfixDot]
(+) [UtilsLib.Floats.Infix]
(+.) [UtilsLib.Floats.InfixDot]
(-) [UtilsLib.Floats.Infix]
(-.) [UtilsLib.Floats.InfixDot]
(/) [UtilsLib.Floats.Infix]
(/.) [UtilsLib.Floats.InfixDot]
(<) [UtilsLib.Floats.Infix]
(<.) [UtilsLib.Floats.InfixDot]
(<<) [UtilsLib.Outputs.Infix]
(<=) [UtilsLib.Floats.Infix]
(<=.) [UtilsLib.Floats.InfixDot]
(=) [UtilsLib.Floats.Infix]
(=.) [UtilsLib.Floats.InfixDot]
(>) [UtilsLib.Floats.Infix]
(>.) [UtilsLib.Floats.InfixDot]
(>=) [UtilsLib.Floats.Infix]
(>=.) [UtilsLib.Floats.InfixDot]
A
args [UtilsLib.LSys]

returns the same than Sys.argv but as a list instead of an array

assoc_def [UtilsLib.Lists]

same than List.assoc but with a default value

assoc_err [UtilsLib.Lists]

same than List.assoc but with a custom error message

assoc_replace [UtilsLib.Lists]

replace the associated value for the first key in an association list

B
back_init [UtilsLib.Randoms]

init using a backup seed

C
capitalize [UtilsLib.Strings]
char_cut [UtilsLib.ImStrings]

cut the string at the first occurence of the char

char_cut [UtilsLib.Strings]

cut the string at the first occurence of the char

char_index_all [UtilsLib.ImStrings]
char_index_all [UtilsLib.Strings]
char_index_from [UtilsLib.ImStrings]
char_index_from [UtilsLib.Strings]
char_rcut [UtilsLib.ImStrings]

cut the string at the last occurence of the char

char_rcut [UtilsLib.Strings]

cut the string at the last occurence of the char

char_rindex_from [UtilsLib.ImStrings]
char_rindex_from [UtilsLib.Strings]
char_split [UtilsLib.ImStrings]

char_split s c splits the string s wherever the character c appears

char_split [UtilsLib.Strings]

char_split s c splits the string s wherever the character c appears

char_splitter [UtilsLib.ImStrings]

same than char_split but also String.trims all strings and filters out all empty strings

char_splitter [UtilsLib.Strings]

same than char_split but also String.trims all strings and filters out all empty strings

cmp_float [UtilsLib.Floats]

if the difference is less or equal to epsilon_float

compare [UtilsLib.Floats]
compare [UtilsLib.Ints]
copy [UtilsLib.Strings]
create [UtilsLib.Strings]
D
default [UtilsLib.Options]

Option.default def opt_val returns def if opt_val is None or if opt_val is Some v, then v is returned.

drop [UtilsLib.Lists]
E
ends_with [UtilsLib.ImStrings]

ends_with sub s returns true if s ends with sub

ends_with [UtilsLib.Strings]

ends_with sub s returns true if s ends with sub

F
fill [UtilsLib.Strings]

Strings.fill s n len c returns a copy of s where the range defined by n and n + len have been replaced by the char c (with len the length of the range to replace)

fold_left [UtilsLib.Labels.Loops]
fold_left [UtilsLib.Loops]

Loop.fold_left f v n calls f in a folded way over the v parameter n times.

fold_left [UtilsLib.ImStrings]
fold_left [UtilsLib.Strings]
G
get_bool [UtilsLib.Args]
get_bool_opt [UtilsLib.Args]
get_custom [UtilsLib.Args]
get_custom_opt [UtilsLib.Args]
get_extension [UtilsLib.Filenames]

return the extension of the filename.

get_float [UtilsLib.Args]
get_float_opt [UtilsLib.Args]
get_int [UtilsLib.Args]
get_int_opt [UtilsLib.Args]
get_string [UtilsLib.Args]
get_string_list [UtilsLib.Args]
get_string_opt [UtilsLib.Args]
I
index [UtilsLib.Lists]
init [UtilsLib.ImStrings]
init [UtilsLib.Strings]
init [UtilsLib.Lists]

List.init n f returns a list of n elements that were created by calling the function f with parameter from 0 to n-1

init_back [UtilsLib.Randoms]

make possible to init with the same seed again

input_channel [UtilsLib.Inputs]

get all contents from an input channel

input_line_opt [UtilsLib.Inputs]

returns one line from the input channel or None if the end of file is reached

input_lines [UtilsLib.Inputs]

returns the list of lines from an input channel

is_alpha [UtilsLib.Chars]
is_alpha_num [UtilsLib.Chars]
is_hex_num [UtilsLib.Chars]
is_num [UtilsLib.Chars]
iter [UtilsLib.Labels.Loops]
iter [UtilsLib.Loops]

Loop.iter f n calls f repeatedly n times.

iteri [UtilsLib.Labels.Loops]
iteri [UtilsLib.Loops]

Loop.iteri f n calls f repeatedly n times.

L
line [UtilsLib.Inputs]

same than input_line_opt

lines [UtilsLib.Inputs]

same than input_lines

lines_of_file [UtilsLib.Inputs]

returns the list of lines from a file

lowercase [UtilsLib.Strings]
M
make_back_init [UtilsLib.RandStates]

init using a backup seed

make_init_back [UtilsLib.RandStates]

make possible to init with the same seed again

map2 [UtilsLib.ImArrays]
map2 [UtilsLib.Arrays]
map_opt [UtilsLib.Lists]

List.map and List.filter in one round

N
nth [UtilsLib.ImStrings]

get the nth char of a string in an exceptionless way

nth [UtilsLib.Strings]

get the nth char of a string in an exceptionless way

nth_is [UtilsLib.ImStrings]

String.nth_is s ofs c returns true if the nth char is c

nth_is [UtilsLib.Strings]

String.nth_is s ofs c returns true if the nth char is c

O
of_string [UtilsLib.ImStrings]
P
parse [UtilsLib.Args]
prob_extract [UtilsLib.Randoms]

extract one element from the list and also return the list without this element

prob_take [UtilsLib.Randoms]

probabilistic choice

R
rand [UtilsLib.Floats]
rand [UtilsLib.Ints]
range [UtilsLib.Ints64]
range [UtilsLib.Ints32]
range [UtilsLib.Randoms.Int64]
range [UtilsLib.Randoms.Int32]
range [UtilsLib.Randoms.Float]
range [UtilsLib.Randoms.Int]
read_file [UtilsLib.Inputs]

loads the all content of the given file

read_file_bin [UtilsLib.Inputs]

read binary file in a portable way

return [UtilsLib.Lists]

similar to List.find but returns the result of the function application

return_opt [UtilsLib.Lists]

same than List.return but exceptionless

S
set [UtilsLib.ImStrings]

String.set s n c returns a copy of s where the nth's char of is set to c

set [UtilsLib.Strings]

String.set s n c returns a copy of s where the nth's char of is set to c

starts_with [UtilsLib.ImStrings]

starts_with sub s returns true if s starts with sub

starts_with [UtilsLib.Strings]

starts_with sub s returns true if s starts with sub

starts_with [UtilsLib.Lists]
str_cut [UtilsLib.ImStrings]
str_cut [UtilsLib.Strings]
str_split [UtilsLib.ImStrings]
str_split [UtilsLib.Strings]
string_index [UtilsLib.ImStrings]
string_index [UtilsLib.Strings]
string_index_from [UtilsLib.ImStrings]
string_index_from [UtilsLib.Strings]
string_rindex [UtilsLib.ImStrings]
string_rindex [UtilsLib.Strings]
string_rindex_from [UtilsLib.ImStrings]
string_rindex_from [UtilsLib.Strings]
T
take [UtilsLib.Randoms.Array]
take [UtilsLib.Randoms.List]
take [UtilsLib.Lists]

takes the n-th first elements of the list

to_string [UtilsLib.ImStrings]
U
uncapitalize [UtilsLib.Strings]
uniq [UtilsLib.Lists]
uppercase [UtilsLib.Strings]
usage [UtilsLib.Args]
W
write_file [UtilsLib.Outputs]

write_file filename contents

write_file_bin [UtilsLib.Outputs]