find-doc searches available Clojure documentation strings with a regular-expression pattern. Use it when you know part of a name or a use case rather than an exact symbol; use doc when the symbol is known. section 22.3
Search names beginning with to-
(find-doc "^to-") ;; ------------------------- ;; clojure.core/to-array ;; Returns an array of Objects containing the contents of coll. ;; ------------------------- ;; clojure.core/to-array-2d ;; Returns a potentially-ragged 2-dimensional array of Objects. The anchor restricts matches to documentation strings beginning with "to-". Without the anchor, a generic "to-" pattern can produce several pages because it may match anywhere in a name or documentation string. section 22.3
Choose the REPL search according to what you already know:
- Use doc for the documentation associated with a specific symbol. section 22.3
- Use apropos when you want names containing a pattern, without searching documentation text. section 22.3
