Skip to content

Instantly share code, notes, and snippets.

@wdhowe
Last active November 28, 2020 18:03
Show Gist options
  • Save wdhowe/4125856d72714724072f4f6b007273a8 to your computer and use it in GitHub Desktop.
Save wdhowe/4125856d72714724072f4f6b007273a8 to your computer and use it in GitHub Desktop.
Clojure commands for getting help, docs and more while in the REPL

Clojure REPL Help

Commands that can be entered in the REPL for finding help, documentation, and more.

Load clojure REPL helper functions

(require '[clojure.repl :refer :all])

doc - display documentation for a function

(doc +)

apropos - find function names that match a string

(apropos "+")

find-doc - wider function search that includes docstrings

(find-doc "trim")

dir - view full listing of functions in a namespace

(dir clojure.repl)

source - view function description and source

(source dir)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment