Skip to content
Browse files

Add support for the transient code

  • Loading branch information...
1 parent 8752392 commit bc93fcbf44c51b0777d52175e9501d7afdfcc3d0 @michalmarczyk committed
Showing with 11 additions and 2 deletions.
  1. +2 −2 project.clj
  2. +9 −0 src/cljs/phm.cljs
View
4 project.clj
@@ -5,8 +5,8 @@
:source-path "src/clj/"
:dependencies [[org.clojure/clojure "1.3.0"]
;; locally built from
- ;; https://github.com/michalmarczyk/clojurescript/tree/phm2
- [org.clojure/clojurescript "0.0-1078"]]
+ ;; https://github.com/michalmarczyk/clojurescript/tree/phm2-transient
+ [org.clojure/clojurescript "0.0-1079"]]
:plugins [[lein-cljsbuild "0.1.7"]]
:cljsbuild {:builds [{:source-path "src/cljs/"
:compiler {:output-to "phm.js"
View
9 src/cljs/phm.cljs
@@ -26,3 +26,12 @@
(defn ^:export invokewrapperdefault [m k not-found]
(m k not-found))
+
+(defn ^:export transientwrapper [m]
+ (transient m))
+
+(defn ^:export persistentwrapper [tm]
+ (persistent! tm))
+
+(defn ^:export assocbangwrapper [tm k v]
+ (assoc! tm k v))

0 comments on commit bc93fcb

Please sign in to comment.
Something went wrong with that request. Please try again.