It is an easy to answer question (I guess), but I looked for a while not finding anything so I will direct my question to you.
There is the typep
to determine whether a given variable is of some specific data-type e.g. integer,hashtable etc. , but is there a function which returns the data-type?
e.g.
(defvar *x* 1)
*x*
(typep *x* 'integer)
T
(the-type-function *x*)
INTEGER