Last active
December 1, 2016 14:57
-
-
Save zhouqiang-cl/72024b676eada23a4b1afb4d423ba007 to your computer and use it in GitHub Desktop.
common lisp 的函数 RPLACA, RPLACD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
rplaca cons object => cons | |
rplacd cons object => cons | |
参数和值 | |
cons --- 一个 cons | |
object --- 一个 object | |
描述 | |
rplaca 将 cons 的 car 替换成 object | |
rplacd 将 cons 的 cdr 替换成 object | |
代码 | |
* (rplaca '(E F G) '(A B C)) | |
((A B C) F G) | |
* (rplacd '(E F G) '(A B C)) | |
(E A B C) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment