Re: [beginner] idiomatic way to parse lazy sequence

2016-11-09 Thread anurag peshne
Hi Bobby, Thanks for the reply. It worked and my server is serving over HTTP 1.0! Next step: HTTP 1.1 Regards, Anurag On Tuesday, 8 November 2016 08:58:57 UTC-5, Bobby Eickhoff wrote: > > Here are a few thoughts. > > This algorithm sounds like a fold, i.e. a reduction. You're iterating > over

Re: [beginner] idiomatic way to parse lazy sequence

2016-11-08 Thread Bobby Eickhoff
Here are a few thoughts. This algorithm sounds like a fold, i.e. a reduction. You're iterating over a sequence while accumulating into a collection. A collection of collections, in this case. You're starting value for the fold might be this: {:first {}, :second {}} You're reducing function

[beginner] idiomatic way to parse lazy sequence

2016-11-08 Thread anurag peshne
Hello, I'm new to Clojure and new here (if I'm missing something please point me to it) I'm trying to parse a lazy sequence of strings. After parsing, I'll create key value pair which needs to be added to either one of the two maps. I'm coming from Python background and having a tough time to ge