Re: hash-map initialization issue

2013-04-02 Thread Ryan T.
Thanks Gary, it didn't cross my mind that i can use the # reader with the threading macro :) On Tue, Apr 2, 2013 at 4:15 PM, Gary Verhaegen wrote: > And there's the threading macro : #(-> {:foo %}) > > On 1 April 2013 07:12, Ryan wrote: > > Thanks for your input guys > > > > Ryan > > > > > > On

Re: Clojure + Web Services + Web Sockets

2013-02-11 Thread Ryan T.
ison wrote: > > > On 2013-02-11, at 6:12 PM, Ryan T. > > wrote: > > Unless someone has to suggest something better, it seems that the best way > to achieve what i want is to use aleph<https://github.com/ztellman/aleph/> > which > allows you to initialize it with

Re: Clojure + Web Services + Web Sockets

2013-02-11 Thread Ryan T.
o hear about them. On Tuesday, February 12, 2013 12:54:53 AM UTC+2, Ryan T. wrote: > > Hello, > > I am trying to figure out how to setup my clojure project in order to be > able to serve both normal http requests which will return json and also > handle requests over websockets. I

Clojure + Web Services + Web Sockets

2013-02-11 Thread Ryan T.
Hello, I am trying to figure out how to setup my clojure project in order to be able to serve both normal http requests which will return json and also handle requests over websockets. Is it possible to do both and listen on same port? or do i need two separate projects? or ? I did find t

Re: Question about doseq

2012-10-31 Thread Ryan T.
Thanks Meikel, your answer was very clear. On Wednesday, October 31, 2012 12:49:06 PM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > I'm not sure what you are refering to in the provided link. If it's eg. > about :warehouses, then the difference is, that :warehouses contains a > vector i

Re: Question about doseq

2012-10-31 Thread Ryan T.
s case. Regards, Ryan On Wednesday, October 31, 2012 8:27:13 AM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > Am Mittwoch, 31. Oktober 2012 01:29:11 UTC+1 schrieb Ryan T.: >> >> user=> (doseq [[id item] my-hash >>> key (:a-key item)

Re: Question about doseq

2012-10-31 Thread Ryan T.
Thank you both for your replies, they were very helpful. Regards, Ryan On Wednesday, October 31, 2012 2:29:11 AM UTC+2, Ryan T. wrote: > > Hello all, > > I have the following code: > > (def my-hash {"1" {:a-key {:value "a value"} :another