型を判定します。
型述語というそうです。
文字や文字列の類
objectが文字列か文字(つまり、整数)ならば tを返し、さもなければnilを返す。
(char-or-string-p "hoge") t (char-or-string-p 1) t
数値
(integerp "hoge") nil (integerp 1) t
型を判定します。
型述語というそうです。
objectが文字列か文字(つまり、整数)ならば tを返し、さもなければnilを返す。
(char-or-string-p "hoge") t (char-or-string-p 1) t
(integerp "hoge") nil (integerp 1) t