2.4.9 向量类型

vector向量 是由任意类型元素构成的一维数组。访问向量中任意元素的时间是常数时间。(而在列表中,元素的访问时间与该元素到列表开头的距离成正比。)

向量的打印表示形式为:左方括号、元素、右方括号。这同时也是它的读取语法。与数字和字符串一样,向量在求值时被视为常量。

[1 "two" (three)]      ; 包含三个元素的向量
     ⇒ [1 "two" (three)]

有关操作向量的函数,see 向量

emacs

Emacs

org-mode

Orgmode

Donations

打赏

Copyright

© 2025 Jasper Hsu

Creative Commons

Creative Commons

Attribute

Attribute

Noncommercial

Noncommercial

Share Alike

Share Alike