怎样查询数据类型?
各位大佬,怎样查询数据类型是什么?比如list、字符串等? type type type 通过下面查询cond((booleanp(A) axlUIWPrint(nil "A is a boolean.\n" ) )
(integerp(A) axlUIWPrint(nil "A is an integer.\n" ) )
(realp(A) axlUIWPrint(nil "A is a real.\n" ) )
(listp(A) axlUIWPrint(nil "A is an list.\n" ) )
(stringp(A) axlUIWPrint(nil "A is a string.\n" ) )
(symstrpA) axlUIWPrint(nil "A is an symbol.\n" ) )
(t axlUIWPrint(nil "A is other type.\n" ) )
)
页:
[1]