Re: Two Dimensional Associative Map

2013-08-02 Thread glow
This simple solution is symetrical, stores both rows and colums and this way you get instant access both to any column and row with constant penalty on get, assoc and update. It feels a bit messy because you decided to not differentiate between horizontal and vertical indices. That may be a goo

Re: If/cond thoughts..

2009-03-01 Thread glow
Thanks everyone for the response! As a Lisp newbie i may sound naive but: 1) Why is cond and condp syntax inconsistent (necessity of :else)? 2) On page 1 of introduction to Lisp I read "(+ 1 2) but also (+ 1 2 3)". Wow prefix notation is cool. But imagine for a moment that in an new exciting lan

If/cond thoughts..

2009-02-25 Thread glow
Hi everyone! I am currently learning Lisp and Clojure. A few days ago i read how "if" in Arc works and I wonder why it is not the same in Clojure: (if a b ; if a then b c d ; elseif c then d e) ; else e. I thought a bit about it and it seems that Clojure hasn't improved