Occasionally, I want to map a collection of seqs to their is-empty or
is-not-empty status (e.g. true / false). And the helpfile of empty?
puts me on the wrong leg occasionally.

clojure.core/
empty?
([coll])
  Returns true if coll has no items - same as (not (seq
coll)).
  Please use the idiom (seq x) rather than (not (empty? x))

If I decide I specifically want true or false returned, and not
(content of seq) / false, I sometimes pick up seq?, not realizing that
it will always return true on both empty and filled seqs.

Made the mistake a few times so far, and I blame it on this helpfile
putting me on the wrong leg :-). Perhaps we could add a short line
after the last saying

", unless you specifically need true/false returned, rather than
content/false."

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to