was there a time when clojure empty seqs were falsy?

2013-02-25 Thread Jim - FooBar();
I found this code snippet [1] written by Rich but presumably using a very old version of Clojure. The thing that stand out the most is this at the bottom (the 'correct' fn): (or (known [word] *nwords*) (known (edits1 word) *nwords*) (known-edits2 word *nwords*) [word]) It

Re: was there a time when clojure empty seqs were falsy?

2013-02-25 Thread David Powell
Some time before the release of Clojure 1.0, there didn't used to be any such thing as an empty sequence. You either had a (lazy) sequence, or nil. This made it easy to use sequences as emptiness tests, but had the cost that a lazy sequence wasn't fully lazy because anything that returned one

Re: was there a time when clojure empty seqs were falsy?

2013-02-25 Thread Jim - FooBar();
I see... thanks a lot! :-) Jim On 25/02/13 12:34, David Powell wrote: Some time before the release of Clojure 1.0, there didn't used to be any such thing as an empty sequence. You either had a (lazy) sequence, or nil. This made it easy to use sequences as emptiness tests, but had the cost

Re: was there a time when clojure empty seqs were falsy?

2013-02-25 Thread Meikel Brandmeyer (kotarak)
shameless plug I talked about the history of lazy-seq and friends at the EuroClojure 2012: http://vimeo.com/channels/357487/45561410 /shameless plug Kind regards Meikel -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send