callback before evicting element from cache [core.cache]

2016-11-14 Thread anurag peshne
Hello, I'm trying to use core.cache as a open file cache. I want to close the file descriptor when the cache entry is removed. However, there is no way to pass any callback before an entry is evicted.

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

[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