Add perdicate for primitive types

This commit is contained in:
Joshua Suskalo 2021-10-13 09:57:23 -05:00
parent bcc6b29e9e
commit 868c843875

View file

@ -212,6 +212,11 @@
(qualified-keyword? type) type
(sequential? type) (keyword (first type))))
(def primitive?
"A set of all primitive types."
#{::byte ::short ::int ::long ::long-long
::char ::float ::double ::pointer})
(defmulti primitive-type
"Gets the primitive type that is used to pass as an argument for the `type`.