try
(*match xres_join_context h1 tl1 h2 tl2 with
[] -> aux tll1 tll2
- | t ->*) (l1::(xres_join_context h1 tl1 h2 tl2))::(aux tll1 tll2)
+ | t -> (l1::(xres_join_context h1 tl1 h2 tl2))::(aux tll1 tll2)*)
+ (l1::(tl1 @ tl2))::(aux tll1 tll2)
with
Join_must_be_empty -> aux tll1 tll2
else
* implementazione del comando INTERSECT
*)
let intersect_ex l1 l2 =
+ let _ = print_string ("INTERSECT ")
+ and t = Unix.time () in
+ let result =
match (l1, l2) with
((head1::tail1), (head2::tail2)) ->
(match (head1, head2) with
) (* match *)
)
| _ -> []
+ in
+ let _ = print_endline (string_of_float (Unix.time () -. t)); flush stdout in
+ result
;;