liveBook · Manning

Apropos

As explained in Clojure: The Essential Reference

apropos is a Clojure REPL function that searches public definitions by matching text in their names.

apropos searches public definitions by matching text in their names, making it useful when you remember part of a Clojure API name but not the exact symbol. section 22.3

Use apropos to:

  • Search names without inspecting documentation strings. section 22.3
  • Compare its concise results with find-doc, which searches documentation using a regular expression. section 22.3
  • Run it directly at the REPL, where apropos is available without an explicit require. section 22.3

Finding conversion-related definitions

(apropos "to-") ;; (clojure.core/into-array ;; clojure.core/to-array ;; clojure.core/to-array-2d)

How Clojure: The Essential Reference covers it

How deep it goes
Defines name matching and contrasts it with documentation search, but does not detail matching semantics beyond the supplied example.
Examples
Demonstrates searching for "to-" and returning three clojure.core definitions.
What it assumes
Assumes familiarity with the Clojure REPL and public definitions while keeping name-based discovery straightforward.
What you can do after
Evaluate searches that locate public definitions from partial name fragments at the Clojure REPL.
How it connects
Connects REPL exploration with clojure.repl, find-doc, doc, and dir.

This explainer was generated by Manning's knowledge graph from the text of Clojure: The Essential Reference. The section links point to the parts of the book it draws on.