class-of

native

(class-of obj)

(class-of obj) — 返回 obj 的类名符号。

对任何值都有定义:对象返回其类名,内置值返回 Integer、String、

List 之类的内置类名;nil 返回 Nil。