module Tools:Useful sequential functionssig
..end
val natmod : int -> int -> int
val from_to : int -> int -> int list
from_to n1 n2
= [n1;n1+1;...;n2]
val filtermap : ('a -> bool) -> ('a -> 'b) -> 'a list -> 'b list
filtermap p f l
applies f
to each element of l
which
satifies the predicate p
val compose : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b
val id : 'a -> 'a
val is_empty : 'a -> bool