Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
84c3f248
Commit
84c3f248
authored
Sep 12, 2003
by
Richard M. Stallman
Browse files
(Building Lists): Add copy-tree.
parent
f6cad089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
lispref/lists.texi
lispref/lists.texi
+12
-0
No files found.
lispref/lists.texi
View file @
84c3f248
...
...
@@ -733,6 +733,18 @@ The function @code{delq} offers a way to perform this operation
destructively. See @ref{Sets And Lists}.
@end defun
@defun copy-tree tree &optional vecp
This function returns a copy the tree @code{tree}. If @var{tree} is a
cons cell, this makes a new cons cell with the same @sc{car} and
@sc{cdr}, then recursively copies the @sc{car} and @sc{cdr} in the
same way.
Normally, when @var{tree} is anything other than a cons cell,
@code{copy-tree} simply returns @var{tree}. However, if @var{vecp} is
non-@code{nil}, it copies vectors too (and operates recursively on
their elements).
@end defun
@defun number-sequence from to &optional separation
This returns a list of numbers starting with @var{from}
and incrementing by @var{separation} (or by 1 if @var{separation}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment