diff options
| author | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
| commit | 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch) | |
| tree | 158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/elisp/modifying-lists.html | |
| parent | 9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff) | |
| download | dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip | |
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/elisp/modifying-lists.html')
| -rw-r--r-- | devdocs/elisp/modifying-lists.html | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/devdocs/elisp/modifying-lists.html b/devdocs/elisp/modifying-lists.html deleted file mode 100644 index b2eae408..00000000 --- a/devdocs/elisp/modifying-lists.html +++ /dev/null @@ -1,22 +0,0 @@ - <h3 class="section">Modifying Existing List Structure</h3> <p>You can modify the <small>CAR</small> and <small>CDR</small> contents of a cons cell with the primitives <code>setcar</code> and <code>setcdr</code>. These are destructive operations because they change existing list structure. Destructive operations should be applied only to mutable lists, that is, lists constructed via <code>cons</code>, <code>list</code> or similar operations. Lists created by quoting are part of the program and should not be changed by destructive operations. See <a href="mutability">Mutability</a>. </p> <blockquote> <p><b>Common Lisp note:</b> Common Lisp uses functions <code>rplaca</code> and <code>rplacd</code> to alter list structure; they change structure the same way as <code>setcar</code> and <code>setcdr</code>, but the Common Lisp functions return the cons cell while <code>setcar</code> and <code>setcdr</code> return the new <small>CAR</small> or <small>CDR</small>. </p> -</blockquote> <table class="menu" border="0" cellspacing="0"> <tr> -<td align="left" valign="top">• <a href="setcar" accesskey="1">Setcar</a> -</td> -<td> </td> -<td align="left" valign="top">Replacing an element in a list. </td> -</tr> <tr> -<td align="left" valign="top">• <a href="setcdr" accesskey="2">Setcdr</a> -</td> -<td> </td> -<td align="left" valign="top">Replacing part of the list backbone. This can be used to remove or add elements. </td> -</tr> <tr> -<td align="left" valign="top">• <a href="rearrangement" accesskey="3">Rearrangement</a> -</td> -<td> </td> -<td align="left" valign="top">Reordering the elements in a list; combining lists. </td> -</tr> </table><div class="_attribution"> - <p class="_attribution-p"> - Copyright © 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/Modifying-Lists.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Modifying-Lists.html</a> - </p> -</div> |
