let module Naive = Run.Make(Naive_tree) in
let result_list =
- let root = [ Naive_tree.root doc] in
+ let root = Sequence.create () in
+ let () = Sequence.add (Naive_tree.root doc) root in
let f, msg =
match !Options.parallel, !Options.compose with
true, true ->
output_string output (string_of_int !count);
output_string output "\" >\n";
if !Options.count then begin
- output_string output (string_of_int (List.length results));
+ output_string output (string_of_int (Sequence.length results));
output_char output '\n';
end else
- List.iter (fun n ->
+ Sequence.iter (fun n ->
Naive_tree.print_xml output doc n;
output_char output '\n'
) results;