简体   繁体   中英

How can I convert clojure.contrib.monads to be used with clojurescript?

I would like to use the Clojure Monad library clojure.contrib.monads in ClojureScript. Is there an implementation that has been tested as known to work with ClojureScript as it does not appear in the standard ClojureScript distribution?

(I am assumming I may have to just copy and paste the code from a clj into a cljs. Although what about the macros, as these need to be in a clj file)

Update: (am I right in thinking that these are the two files I will need?)

Files

Ok, it looks like this doesn't exist. I'm going to have to go through the implementation in Clojure first to make sure that eval and similar stuff is not used, as Clojurescript does not support all the features of Clojure.

您可能想看看Jim Duey的protocol-monads ,最近添加了cljs支持-有关详细信息,请参见此提交

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM