concept find - doc in category clojure

appears as: find-doc
Clojure in Action, Second Edition

This is an excerpt from Manning's book Clojure in Action, Second Edition.

The find-doc function accepts a string, which can be a regular expression (regex) pattern. It then finds the documentation for all functions or macros the names or associated documentation of which match the supplied pattern. Although doc is useful for when you know the name of the function or macro you want to look up, find-doc is useful if you aren’t sure of the name. Here’s an example:

user> (find-doc "lazy")
-------------------------
clojure.core/concat
([] [x] [x y] [x y & zs])
  Returns a lazy seq representing the concatenation of...
-------------------------
clojure.core/cycle
([coll])
  Returns a lazy (infinite!) sequence of repetitions of...
... more results

These two forms, doc and find-doc, are quite useful at the REPL when you want to quickly look up what a function does or you want to find the right options. You may see a lot of functions and documentation you don’t understand yet, but rest assured we’ll cover it all eventually.