Why (keys) return zero in Clojure, while (keys "abc") is an error?
I am new to Clojure. The keys behavior seems inconsistent to me:
user=> (keys "")
nil
user=> (keys "abc")
ClassCastException
Empty collections appear to be handled on purpose, and test cases show that this is intentional. What is the thinking behind this behavior?
+5