Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 19, 2016 07:38
Show Gist options
  • Save zhouqiang-cl/bce2493e4f1c8879bcb7094fbebb4d35 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/bce2493e4f1c8879bcb7094fbebb4d35 to your computer and use it in GitHub Desktop.
common lisp 的函数 ARRAY-ELEMENT-TYPE
语法
array-element-type array => typespec
参数和值
array --- 一个 array
typespec --- 一个 type specifier
描述
返回 array 中元素的类型
代码
* (array-element-type (make-array 4))
T
* (array-element-type (make-array 12 :element-type '(unsigned-byte 8)))
(UNSIGNED-BYTE 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment