appendã¯æ°ããã³ãã¼ãã¤ããã¤ã¡ã¼ã¸ããã£ãããã©ï¼ã©ããã第1å¼æ°ã®ãªã¹ãã¯ã³ãã¼ãã¦ï¼æå¾ã®cdrã«2å¼æ°ã®å é ã¸ã®ãã¤ã³ã¿ãæ ¼ç´ããçã³ã¹ãæä½ããã¦ãããããï¼ Emacs Lispã§ã¯ãããããããã©ï¼Common Lispã§ã¯ã©ãããªï¼Xyzzyã§ã¡ãã£ã¨ç¢ºèªï¼ (setq A '(1 2 3)) (setq B '(4 5 6)) (setq C (append A B)) ; => (1 2 3 4 5 6) ; Aãå¤æ´ãã¦ãCã«å½±é¿ã¯åããªã (setf (car A) 9) ; => 9 A ; => (9 2 3) C ; => (1 2 3 4 5 6) ; Bã®ãªã¹ãã¯å ±æãã¦ããããï¼å¤æ´ããã¨Cã«å½±é¿ãä¸ãã (setf (car B) 8) ; => 8 C ; => (1 2 3 8 5 6) ããï¼æ¬å½ã ï¼ åè ãªã¹ãéã³âEmacsã§å¦ã¶Li
{{#tags}}- {{label}}
{{/tags}}