Back
apropos (clj)
(source)function
(apropos str-or-pattern)
Given a regular expression or stringable thing, return a seq of all
public definitions in all currently-loaded namespaces that match the
str-or-pattern.
Examples
cognitect/clojure-lab
;; @@
(require '[clojure.repl :refer :all])
;; @@
;; **
;;; For now, you can treat that as a magic incantation. Poof! We'll unpack it when we get to namespaces.
;;;
;;; We now have access to some additional functions that are useful at the REPL: `doc`, `find-doc`, `apropos`, `source`, and `dir`.
;;;
;;; The `doc` function displays the documentation for any function. Let's call it on `+`:
;; **
;; **
;;; Not sure what something is called? You can use the `apropos` command to find functions that match a particular string or regular expression.
;; **
;; @@
(apropos "+")
;; @@
;; =>
;;; {"type":"list-like","open":"<span class='clj-list'>(</span>","close":"<span class='clj-list'>)</span>","separator":" ","items":[{"type":"html","content":"<span class='clj-symbol'>clojure.core/+</span>","value":"clojure.core/+"},{"type":"html","content":"<span class='clj-symbol'>clojure.core/+'</span>","value":"clojure.core/+'"}],"value":"(clojure.core/+ clojure.core/+')"}
;; <=
;; @@
(dir clojure.repl)
;; @@
;; ->
;;; apropos
;;; demunge
;;; dir
;;; dir-fn
;;; doc
;;; find-doc
;;; pst
;;; root-cause
;;; set-break-handler!
;;; source
;;; source-fn
;;; stack-element-str
;;; thread-stopper
;;;
;; <-
;; =>
;;; {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"}
;; <=
hatemogi/misaeng
(ns 미생.레플
(:use [미생.기본])
(:require [clojure.repl]))
(매크로대응 설명 clojure.repl/doc)
(매크로대응 소스 clojure.repl/source)
(매크로대응 열람 clojure.repl/dir)
(매크로대응 설명찾기 clojure.repl/find-doc)
(매크로대응 정의현황 clojure.repl/apropos)
(정의* pst clojure.repl/pst
demunge clojure.repl/demunge)