We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
newline
1 parent 8f9d5e5 commit cb13b11Copy full SHA for cb13b11
src/main/cljs/cljs/core.cljs
@@ -8602,10 +8602,12 @@ reduces them without incurring seq initialization"
8602
[objs opts]
8603
(string-print (pr-str-with-opts objs opts)))
8604
8605
-(defn newline [opts]
8606
- (string-print "\n")
8607
- (when (get opts :flush-on-newline)
8608
- (flush)))
+(defn newline
+ ([] (newline nil))
+ ([opts]
+ (string-print "\n")
8609
+ (when (get opts :flush-on-newline)
8610
+ (flush))))
8611
8612
(defn pr-str
8613
"pr to a string, returning it. Fundamental entrypoint to IPrintWithWriter."
0 commit comments