seq
returns nil
when given an empty collection. empty?
is implemented as
(not (seq coll))
so it's best and fastest to use seq
directly.
Examples:
; bad (not (empty? coll))
; good (seq coll)
`seq` returns `nil` when given an empty collection. `empty?` is implemented as `(not (seq coll))` so it's best and fastest to use `seq` directly. Examples: ; bad (not (empty? coll)) ; good (seq coll)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close