not obtained with a pre-visit. The result was that often Failures were detected
later than possible with consequent waste of time.
List.flatten
(List.rev_map (fun (_,ty,_,_) -> domain_rev_of_term [] ty) fields) in
let dom =
- List.fold_left
- (fun dom (_,ty) ->
+ List.fold_right
+ (fun (_,ty) dom ->
match ty with
None -> dom
- | Some ty -> domain_rev_of_term [] ty @ dom
- ) (dom @ domain_rev_of_term [] ty) params
+ | Some ty -> dom @ domain_rev_of_term [] ty
+ ) params (dom @ domain_rev_of_term [] ty)
in
List.filter
(fun (_,name) ->