File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 981
981
(-pr-writer [o writer _] (-write writer str)))
982
982
983
983
(defn symbol
984
+ " Returns a Symbol with the given namespace and name."
984
985
([name]
985
986
(if (symbol? name)
986
987
name
@@ -9158,6 +9159,7 @@ reduces them without incurring seq initialization"
9158
9159
(string-print (pr-str-with-opts objs opts)))
9159
9160
9160
9161
(defn newline
9162
+ " Prints a newline using *print-fn*"
9161
9163
([] (newline nil ))
9162
9164
([opts]
9163
9165
(string-print " \n " )
@@ -10199,7 +10201,9 @@ reduces them without incurring seq initialization"
10199
10201
(fn [x y]
10200
10202
(cond (pred x y) -1 (pred y x) 1 :else 0 )))
10201
10203
10202
- (defn ^boolean special-symbol? [x]
10204
+ (defn ^boolean special-symbol?
10205
+ " Returns true if x names a special form"
10206
+ [x]
10203
10207
(contains?
10204
10208
'#{if def fn* do let* loop* letfn* throw try catch finally
10205
10209
recur new set! ns deftype* defrecord* . js* & quote var}
Original file line number Diff line number Diff line change 600
600
(seq ret)))
601
601
(core/list (asig fdecl))))))
602
602
603
- (core/defmacro defonce [x init]
603
+ (core/defmacro defonce
604
+ " defs name to have the root value of init iff the named var has no root value,
605
+ else init is unevaluated"
606
+ [x init]
604
607
`(when-not (exists? ~x)
605
608
(def ~x ~init )))
606
609
You can’t perform that action at this time.
0 commit comments