Skip to content

Commit

Permalink
* src/cljs/cljs/core.cljs: move IPrintable function implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Feb 20, 2012
1 parent 7cee8ab commit 5365601
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cljs/cljs/core.cljs
Expand Up @@ -219,11 +219,6 @@
(defn type [x]
(js* "(~{x}).constructor"))

(extend-type js/Function
IPrintable
(-pr-seq [this]
(list "#<" (str this) ">")))

;;;;;;;;;;;;;;;;;;; protocols on primitives ;;;;;;;;
(declare hash-map list equiv-sequential)

Expand Down Expand Up @@ -2978,6 +2973,10 @@ reduces them without incurring seq initialization"
(goog.string.quote obj)
obj))))

function
(-pr-seq [this]
(list "#<" (str this) ">"))

LazySeq
(-pr-seq [coll opts] (pr-sequential pr-seq "(" " " ")" opts coll))

Expand Down

0 comments on commit 5365601

Please sign in to comment.