Skip to content

Instantly share code, notes, and snippets.

@slifin
Last active October 29, 2019 14:03
Show Gist options
  • Select an option

  • Save slifin/b5de13df3bf04b08e35fbd1a199751a3 to your computer and use it in GitHub Desktop.

Select an option

Save slifin/b5de13df3bf04b08e35fbd1a199751a3 to your computer and use it in GitHub Desktop.
(defn php-empty? [input]
(let [read (clojure.edn/read-string (str input))]
(or
(and (number? read) (zero? read))
(not (boolean read))
(and (seqable? read) (empty? read)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment