Create a gist now

Instantly share code, notes, and snippets.

@sritchie /apropos.clj Secret
Created Jan 23, 2012

What would you like to do?
;; 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