Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created September 8, 2012 02:27
Show Gist options
  • Save leandromoreira/3671392 to your computer and use it in GitHub Desktop.
Save leandromoreira/3671392 to your computer and use it in GitHub Desktop.
Use seq instead of empty?
(def pack [])
;try to avoid this
(if (not (empty? pack)) (print "something") (print "empty"))
;in favor of this
(if (seq pack) (print "something") (print "empty"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment