summaryrefslogtreecommitdiff
path: root/devdocs/elisp/vector-type.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/vector-type.html
new repository
Diffstat (limited to 'devdocs/elisp/vector-type.html')
-rw-r--r--devdocs/elisp/vector-type.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/devdocs/elisp/vector-type.html b/devdocs/elisp/vector-type.html
new file mode 100644
index 00000000..e146db70
--- /dev/null
+++ b/devdocs/elisp/vector-type.html
@@ -0,0 +1,9 @@
+ <h4 class="subsection">Vector Type</h4> <p>A <em>vector</em> is a one-dimensional array of elements of any type. It takes a constant amount of time to access any element of a vector. (In a list, the access time of an element is proportional to the distance of the element from the beginning of the list.) </p> <p>The printed representation of a vector consists of a left square bracket, the elements, and a right square bracket. This is also the read syntax. Like numbers and strings, vectors are considered constants for evaluation. </p> <div class="example"> <pre class="example">[1 "two" (three)] ; <span class="roman">A vector of three elements.</span>
+ ⇒ [1 "two" (three)]
+</pre>
+</div> <p>See <a href="vectors">Vectors</a>, for functions that work with vectors. </p><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Vector-Type.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Vector-Type.html</a>
+ </p>
+</div>