Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 68b21bb51f45cdd16c41dc927feddbc7 > files > 12

ocaml-pcre-devel-7.0.2-9.mga4.x86_64.rpm

open Hashtbl

let hash = create 1973
let add_string s = try incr (find hash s) with Not_found -> add hash s (ref 1);;
Pcre.foreach_line (fun line -> List.iter add_string (Pcre.split line));
iter (fun k v -> Printf.printf "%4d\t%s\n" !v k) hash