more types
[sqlgg.git] / listMore.ml
blobf40e0a4d1dc77f9df310e8b26879aa8a246c514c
1 (* *)
3 open Apply
5 module List =
6 struct
8 include ExtList.List
10 let filter_valid lst =
11 (*List.fold_left (fun l elem -> match elem with | Some x -> x::l | None -> l) [] (List.rev lst)*)
12 filter_map id lst
14 let find_option f l = try Some (find f l) with Not_found -> None
16 end (* List *)