8000 * src/cljs/cljs/core.cljs: move IPrintable function implementation · clojure/clojurescript@5365601 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5365601

Browse files
committed
* src/cljs/cljs/core.cljs: move IPrintable function implementation
1 parent 7cee8ab commit 5365601

1 file changed

+4
-5
lines changed

src/cljs/cljs/core.cljs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@
219219
(defn type [x]
220220
(js* "(~{x}).constructor"))
221221

222-
(extend-type js/Function
223-
IPrintable
224-
(-pr-seq [this]
225-
(list "#<" (str this) ">")))
226-
227222
;;;;;;;;;;;;;;;;;;; protocols on primitives ;;;;;;;;
228223
(declare hash-map list equiv-sequential)
229224

@@ -2978,6 +2973,10 @@ reduces them without incurring seq initialization"
29782973
(goog.string.quote obj)
29792974
obj))))
29802975

2976+
function
2977+
(-pr-seq [this]
2978+
(list "#<" (str this) ">"))
2979+
29812980
LazySeq
29822981
(-pr-seq [coll opts] (pr-sequential pr-seq "(" " " ")" opts coll))
29832982

0 commit comments

Comments
 (0)
0