Re: Clojure.zip/next behavior

2009-01-18 Thread Greg Harman
Christophe, thanks for your explanation. I certainly agree that is what is happening but I find it unintuitive, especially when the structure I was walking was an S-expression in which the first member of a list is understood to be an operator to which the following members are passed as arguments

Re: Clojure.zip/next behavior

2009-01-18 Thread Christophe Grand
Greg Harman a écrit : > Take the following data structure, wrapped up with clojure.zip/seq- > zip: '(+ (- 1 2) (* 3 4)) > > Repeatedly calling clojure.zip/next produces these "nodes": > > + > (- 1 2) > - > 1 > 2 > ... > > The (- 1 2) is what's throwing me off. Drawing out a tree structure, I > see