Can I use reduce here?

2014-12-12 Thread Mathias Picker
Hi all, a short question from a newbie. I have a data structure like: mytitle1; 2015-02-01 mytitle2; 2015-03-12 ;2015-03-28 mytitle3; 2015-01-12 and want something like this [{:title mytitle1 :events [{:date 2015-02-01}]} {:title mytitle2 :events [{:date 2015-03-12} {:date 2015-03-28}]}

Re: Can I use reduce here?

2014-12-12 Thread Mathias Picker
Hi Robin, thanks for the example of reduce above! That was what I was looking for. I will try it out once I'm at my desk again. / Mathias -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com

clj-pdf: how to serve a pdf with ring

2014-03-23 Thread Mathias Picker
I'm trying to serve a clj-http generated document directly via ring/compojure. I thought ring.util/piped-output-stream would work, but it seems I'm not understanding something here... This: (defn laminat-pdf-t [natno] (piped-input-stream (fn [output-stream]) (pdf [ {:title (str

Re: core.async and performance

2013-12-01 Thread Mathias Picker
Did you look into Pulsar https://github.com/puniverse/pulsar ? I'm using core.async in the browser, but I don't see it as a multithreading mechanism. Pulsar puts an erlang-like api around the quasar lightweight threads and actors for java. Looks really nice, and seems a good fit for dse type

binding and core.async? (trying to use shoreleave-remote in go block)

2013-09-05 Thread Mathias Picker
Hi all, I'm fighting with shoreleave-remote-ring running on a non default context (immutant), and me not being able to rebind shoreleave.remotes.http-rpc/*remote-uri* inside a go block. If you look at https://gist.github.com/mathiasp/6448753, you will find a code snippet in the init function

Re: binding and core.async? (trying to use shoreleave-remote in go block)

2013-09-05 Thread Mathias Picker
, 5. September 2013 13:18:39 UTC+2 schrieb Mathias Picker: Hi all, I'm fighting with shoreleave-remote-ring running on a non default context (immutant), and me not being able to rebind shoreleave.remotes.http-rpc/*remote-uri* inside a go block. If you look at https://gist.github.com

Re: binding and core.async? (trying to use shoreleave-remote in go block)

2013-09-05 Thread Mathias Picker
in cljs core.async? Cheers, Mathias Am Donnerstag, 5. September 2013 13:18:39 UTC+2 schrieb Mathias Picker: Hi all, I'm fighting with shoreleave-remote-ring running on a non default context (immutant), and me not being able to rebind shoreleave.remotes.http-rpc/*remote-uri* inside a go block