module Utils:sig..end
type os_type =
| |
Win32 |
| |
Unix |
| |
Cygwin |
exception Error of string
val get_os_type : os_typeval replicate : int -> 'a -> 'a listreplicate x a returns a;a;...;a, where the length
of the list is x.val apply : ('a -> 'b) -> 'a -> 'bapply f x runs the function f and gives x as parameter.val apply' : 'a -> ('a -> 'b) -> 'bapply' x f runs the function f and gives x as parameter.type'acfun ='a -> 'a -> int
val comp : 'a cfunval compare_2_tup : 'a cfun * 'b cfun -> 'a * 'b -> 'a * 'b -> intval compare_3_tup : 'a cfun * 'b cfun * 'c cfun ->
'a * 'b * 'c -> 'a * 'b * 'c -> intval fixpoint : ('a -> 'a) -> 'a -> 'afixpoint f a applies f to a, then f to f a, and so on, until
a fixpoint is reached and f x == x for some x = f ... f a.
Waring: This could yield to an infinite loop. A possibility to
ensure termination of this fixpoint computation is to use only monotone
functions f satisfying the ascending chain condition.
val compare_to_equal : ('a -> 'a -> int) -> 'a -> 'a -> boolcompare_to_equal f returns a function that returns true
of f a b == 0, otherwise it returns false.val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'cflip f turns the order of parameters of f, if f is
a function with two parameters.