Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 12, 2016 16:17
Show Gist options
  • Save zhouqiang-cl/3b3312bd8f5abf7bd3992feb6d337a79 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/3b3312bd8f5abf7bd3992feb6d337a79 to your computer and use it in GitHub Desktop.
common lisp 的函数 DESCRIBE
语法
describe object &optional stream => <no values>
参数和值
object --- 一个 object
stream --- 一个 output stream,默认为标准输出
描述
describe 将 object 的描述信息输出到 stream
代码
* (describe '+)
COMMON-LISP:+
[symbol]
+ names a special variable:
Declared type: T
Value: (DESCRIBE +)
Documentation:
the value of the most recent top level READ
+ names a compiled function:
Lambda-list: (&REST NUMBERS)
Declared type: (FUNCTION (&REST NUMBER) (VALUES NUMBER &OPTIONAL))
Derived type: (FUNCTION (&REST T) (VALUES NUMBER &OPTIONAL))
Documentation:
Return the sum of its arguments. With no args, returns 0.
Known attributes: foldable, flushable, unsafely-flushable, movable, explicit-check, commutative
Source file: SYS:SRC;CODE;NUMBERS.LISP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment