diff options
author | scgilardi <scgilardi@gmail.com> | 2008-06-29 02:04:13 +0000 |
---|---|---|
committer | scgilardi <scgilardi@gmail.com> | 2008-06-29 02:04:13 +0000 |
commit | e8184143755a9dfa7c37f248e89754931fb7df20 (patch) | |
tree | 24a63324c8b777c7489245d425d74133277d8671 | |
parent | 172d47d9378300bd040d1957047918b979d5fdbe (diff) |
pred.clj: add empty?
-rw-r--r-- | pred.clj | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -101,3 +101,8 @@ "Returns true if x is odd, throws an exception if x is not an integer" [x] (not (even? x))) + +(defn empty? + "Returns true if coll is empty" + [coll] + (not (seq coll))) |