Skip to content

Commit 60d5349

Browse files
mfikesswannodette
authored andcommitted
CLJS-1732: Add docstrings for new use and use-macros REPL specials
1 parent 20b08fe commit 60d5349

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/clojure/cljs/repl.cljc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,19 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
12001200
require-macros {:arglists ([& args])
12011201
:doc "Similar to the require REPL special function but
12021202
only for macros."}
1203+
use {:arglists ([& args])
1204+
:doc "Like require, but referring vars specified by the mandatory
1205+
:only option.
1206+
1207+
Example:
1208+
1209+
The following would load the library clojure.set while referring
1210+
the intersection var.
1211+
1212+
(use '[clojure.set :only [intersection]])"}
1213+
use-macros {:arglists ([& args])
1214+
:doc "Similar to the use REPL special function but
1215+
only for macros."}
12031216
import {:arglists ([& import-symbols-or-lists])
12041217
:doc "import-list => (closure-namespace constructor-name-symbols*)
12051218

0 commit comments

Comments
 (0)