Re: bug? tree-seq assumes the root is a branch

2009-01-24 Thread Christophe Grand
Rich Hickey a écrit : > That's an arbitrary limitation - patch welcome. > > Rich > Issue #53: http://code.google.com/p/clojure/issues/detail?id=53 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: bug? tree-seq assumes the root is a branch

2009-01-24 Thread Rich Hickey
On Jan 23, 2009, at 1:35 PM, Christophe Grand wrote: > > Christophe Grand a écrit : >> tree-seq assumes the root is a branch: >> user=> (tree-seq (constantly false) seq [1 2 3]) >> ([1 2 3] 1 2 3) ; I expected ([1 2 3]) >> >> Is this a bug? >> > I know it's documented but I don't understand why.

Re: bug? tree-seq assumes the root is a branch

2009-01-23 Thread Christophe Grand
Christophe Grand a écrit : > tree-seq assumes the root is a branch: > user=> (tree-seq (constantly false) seq [1 2 3]) > ([1 2 3] 1 2 3) ; I expected ([1 2 3]) > > Is this a bug? > I know it's documented but I don't understand why. --~--~-~--~~~---~--~~ You rece

bug? tree-seq assumes the root is a branch

2009-01-23 Thread Christophe Grand
tree-seq assumes the root is a branch: user=> (tree-seq (constantly false) seq [1 2 3]) ([1 2 3] 1 2 3) ; I expected ([1 2 3]) Is this a bug? Christophe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" gro