On 9 August 2010 22:16, Alan <a...@malloys.org> wrote: > Weird. I wonder if I was using an outdated version of Clojure or (more > likely) assumed from (doc drop-while) that it wouldn't handle false > the way I wanted. When doc says "not nil" should I assume it means > "neither nil nor false", or should the doc for drop-while be updated? > > user=> (doc drop-while) > ------------------------- > clojure.core/drop-while > ([pred coll]) > Returns a lazy sequence of the items in coll starting from the first > item for which (pred item) returns nil.
I think the docs should be fixed to refer to "logical false" like other parts of the documentation, instead of "nil". e.g.: (find-doc "logical false") [...] clojure.core/when-not ([test & body]) Macro Evaluates test. If logical false, evaluates body in an implicit do. nil -- Michael Wood <esiot...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en