Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Misc
add_assoc (k,v) l
returns the assocation list obtained by adding pair (k,v)
to l
when key k
does not appear in l
. Returns l
otherwise.
collect f l
returns the association list built from applying f
to each element of l
and collecting all the (k,v)
resulting pairs.
This variant of List.fold_left
allows fold_left
s to be chained with |>
list_split_at k [x1;...;xn]
returns [x1;...;xk],[xk+1;...;xn]
if 1<=k<=n. Raises Invalid_argument
otherwise
val copy_with_subst :
(string * string) list ->
in_channel ->
out_channel ->
unit
copy_with_subst [(s1,s1');...] ic oc
copies each line read from input channel ic
to output channel oc
, substituting each occurrence of string si
by si'
.