Re: How To Make Code More Functional?

2008-12-27 Thread Christophe Grand
aria42 a écrit : I decided to code Tarjan's Algorithm for finding all the strongly connected components of a graph (http://en.wikipedia.org/wiki/ Tarjan's_strongly_connected_components_algorithm). I've written this code in Java and it's about a 100 lines. Sadly, my clojure version is about a

Re: How To Make Code More Functional?

2008-12-27 Thread Christophe Grand
I attached the source code since indentation disappear when I paste code in mails. Christophe Grand a écrit : aria42 a écrit : I decided to code Tarjan's Algorithm for finding all the strongly connected components of a graph (http://en.wikipedia.org/wiki/

How To Make Code More Functional?

2008-12-26 Thread aria42
Hi all, I'm just getting started with clojure from a functional background, and while I like playing with clojure and accomplishing script like tasks, I have no experience with anything larger than about 20 lines. I wanted to try to take something with alot of state and put it into clojure. I

Re: How To Make Code More Functional?

2008-12-26 Thread aria42
Clojure for Tajan's Algorithm uploaded here http://clojure.googlegroups.com/web/tarjan.clj?gsc=yOHJ-CEAAAB3Fq8nFW3O6gqQkWXH_xrOYRvSPFZyhAT412614U6EGkzfKN-m9S9niuHrq-IEXAE - aria On Dec 26, 6:30 am, aria42 ari...@gmail.com wrote: Hi all,   I'm just getting started with clojure from a