Anonymous user
Inverted index: Difference between revisions
m
→{{header|OCaml}}
(Added Erlang) |
|||
Line 1,645:
List.iter (fun (w, from) -> Hashtbl.replace h w from) inv_index;
List.iter (fun w ->
except Not_found -> []
▲ let from = Hashtbl.find h w in
in
) words;
Hashtbl.fold (fun w from acc -> (w, from) :: acc) h []
Line 1,688 ⟶ 1,687:
| "--search-word", word -> search_word word
| _ -> usage()</lang>
=={{header|Perl}}==
|