How do I write/perform a type operations in Clojure? -
I have a hard time typing check type in the closure. Please help me please.
- How do I write 'four'? In closure?
-
How do I write / write atom? In closure?
-
How do I know how the item is in closure?
Can I write(type? An-item)
?
user & gt; (Example; character \ c) is true
character
here java.lang.Character
.
The traditional definition of atom
, I think "zero or anything that is not a pair", but it does not make sense in the closure because the closure is everything under the sun For the opposition does not use cells we have vectors and hashpaps and sets. There is a possibility in the closure:
(defn atom? [X] (not coll? X))
Comments
Post a Comment