1.2.0 permalink Arrow_down_16x16
  • (repl-prompt)
Returns the current repl prompt based on this repl's prompt-fmt

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/repl_ln.clj:148 top

(defn repl-prompt
  "Returns the current repl prompt based on this repl's prompt-fmt"
  []
  (let [{:keys [prompt-fmt]} *private*
        {:keys [serial thread depth]} *info*
        line (.getLineNumber *in*)
        namespace (ns-name *ns*)]
    (format prompt-fmt serial thread depth line namespace)))
Vars in clojure.contrib.repl-ln/repl-prompt: defn format let namespace
Used in 0 other vars

Comments top

No comments for repl-prompt. Log in to add a comment.