Created
December 13, 2016 08:37
-
-
Save zhouqiang-cl/18f2190b9a40266b4e7c90c594f45036 to your computer and use it in GitHub Desktop.
common lisp 的函数 TYPEP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 语法 | |
| typep object type-specifier &optional environment => generalized-boolean | |
| 参数和值 | |
| object --- 一个 object | |
| type-specifier --- 一个 type-specifier | |
| environment --- 一个 environment object, 默认为 nil | |
| generalized-boolean --- 一个 generalized-boolean | |
| 描述 | |
| 如果 object 的类型属于 type-specifier 则返回真, 否则返回假 | |
| 代码 | |
| * (typep 'a 'symbol) | |
| T | |
| * (typep 'a 'number) | |
| NIL | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment