About finding documentation

So far, providing Google search strings such as

"ocaml" regex

"ocaml" hashtbl

etc .. usually got me the documentation I was looking for.

One notable exception was

"ocaml" "String.Map"

In this search, all I can find (documented, that is) is the documentation for the String.mapmodule function String(or is it a “package”?). (If understood correctly, String.mapthis is a data structure, namely a card whose keys are of type String, not function.)

More powerful Google search features like

"ocaml" intitle:"String.Map"

... could not find the documentation after which I will.

Is there a less random and more general way to zero - in the documentation for a specific standard element in OCaml?

( " " , , , |>, >> .., , , , 'a '_a , .)


PS: ,

https://ocaml.org
http://caml.inria.fr/pub/docs/manual-ocaml/libref/
https://opam.ocaml.org/packages/

( , "-" , .)

,

http://caml.inria.fr/pub/docs/manual-ocaml/libref/String.Map.html( 404)

EDIT: , :

"ocaml" "of_alist_exn"

, , of_alist_exn - OCaml, , . ( 18 , ( , Google), .)

"" -: . , , , , , . OCaml . , ... , , , ( ..)...

+4
2

OCaml. , , stdlib. , , . : Core, Batteries, extlib, .

OCaml stdlib , . , OCaml . , , . Janestreet OCaml Core. , stdlib. , , ( , , ).

- . . . , . Caml, stdlib.

. Core ocaml core documentation, . , . Std, , , , , (. __init__.py). String. , Core_string (module String : Core_string). , . , + , , , , . , , , . , , Core_string module, et voila. , . , , , (sic) . . , , OCaml, emacs, merlin, ocp-index, ocamlspot. , emacs vim, .

, , , , . , mli. , mli OCaml. , String.strip, emacs Core_string.mli :

(* Warning: the following strip functions have copy-on-write semantics (i.e. they may
   return the same string passed in) *)

(** [lstrip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
    white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the
    beginning of [s]. *)
val lstrip : ?drop:(char -> bool) -> t -> t

(** [rstrip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
    white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the end
    of [s]. *)
val rstrip : ?drop:(char -> bool) -> t -> t

(** [strip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
    white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the
    beginning and end of [s]. *)
val strip : ?drop:(char -> bool) -> t -> t

, imo. , , .

P.S. OCaml. . .

+9

,

http://caml.inria.fr/pub/docs/manual-ocaml/libref/String.Map.html( 404)

! . http://caml.inria.fr/pub/docs/manual-ocaml/libref/String.html ( "ctrl + f map" )

, URL: http://caml.inria.fr/pub/docs/manual-ocaml-4.02/libref/String.html

Debian sudo apt-get install ocaml-doc, info ocaml ctrl+s string.map ( /usr/share/doc/ocaml-doc/)

( , opam , , opam. , .)

, Core, , ivg. Core , Core Core, , Core.

+2

All Articles