Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 19, 2016 08:04
Show Gist options
  • Save zhouqiang-cl/27c4d1b9cd0fe7252c8f7b6e07730f93 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/27c4d1b9cd0fe7252c8f7b6e07730f93 to your computer and use it in GitHub Desktop.
common lisp 的函数 ARRAY-TOTAL-SIZE
语法
array-total-size array => size
参数和值
array --- 一个 array
size --- 一个非负整数
描述
返回array的总大小
代码
* (array-total-size (make-array 4))
4
* (array-total-size (make-array '(4 2)))
8
* (array-total-size (make-array '()))
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment