Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created January 23, 2012 16:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sritchie/611b9fadf92e2936f15f to your computer and use it in GitHub Desktop.
Save sritchie/611b9fadf92e2936f15f to your computer and use it in GitHub Desktop.
;; Use clojure.repl/apropos to search for that function that's on the tip of your tongue:
;; -------------------------
;; clojure.repl/apropos
;; ([str-or-pattern])
;; Given a regular expression or stringable thing, return a seq of
;; all definitions in all currently-loaded namespaces that match the
;; str-or-pattern.
user> (use 'clojure.repl)
nil
user> (apropos "future-")
(future-values future-done? future-call future-cancel future-cancelled?)
;; If you're an emacs+SLIME user, Use C-c C-d C-a to get the same
;; effect. In a cascalog project, for example, Running that command
;; and typing "future-" brings up a new buffer with the following:
;;
clojure.core/future-call
Function: ([f]) Takes a function of no args and yields a future object that will
clojure.core/future-cancel
Function: ([f]) Cancels the future, if possible.
clojure.core/future-cancelled?
Function: ([f]) Returns true if future f is cancelled
clojure.core/future-done?
Function: ([f]) Returns true if future f is done
jackknife.core/future-values
Function: ([futures]) nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment