let of_tags tags = S begin List.fold_left begin fun acc (xtags, xflags) -> if Tags.does_match tags xtags then xflags :: acc else acc end [] !all_flags end