In a multi thread app, is there a way to mark a function to be
blocking so it can run not simultaneously but would be blocking for
each thread?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
I have a function:
(defn abc [] (println "blah"))
(defn blah2 [f] (println f))
(blah2 abc)
I need to print out the name of the function passed to blah2.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
Thank you James, this worked for me.
On Apr 26, 4:11 pm, James Reeves wrote:
> On 27 April 2011 00:05, clj123123 wrote:
>
> > I have a function:
>
> > (defn abc [] (println "blah"))
>
> > (defn blah2 [f] (println f))
>
> > (blah2 abc)
>
> &
(def e1 {:a 1 :b "b" :c 300 })
(def e2 {:a1 :d "blah"})
how to merge to get that?
{:a 1 :b "b" :c 300 :d "blah"}
also is there a way to merge if the ArrayMap was in a vector?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this
t;b", :c 300} {:d "blah2", :a 2, :b "a", :c 500})
On May 10, 9:31 am, Jonathan Fischer Friberg
wrote:
> use (merge e1 e2)
>
> Jonathan
>
>
>
> On Tue, May 10, 2011 at 6:11 PM, clj123123 wrote:
> > (def e1 {:a 1 :b "b" :c 300 })
> &g
Hi,
I need to download files from a server to the client. I'm using jetty
and compojure as the app server.
(defroutes main-route
(GET "/download" []
(java.io.File. "testdir/test.zip")))
when the page is called from the browser:
http://localhost:8080/download the downloaded file name is "dow