Building Cons Cells and Lists |
日本語訳
append
(setq load-path
(append
(list
(expand-file-name "~makoto/mule/lisp/w3-200107")
(expand-file-name "~makoto/mule/lisp") )
load-path ))
(append (quote(a b c d e)))
(a b c d e)
(append '(a b c d e))
(a b c d e)
(append '(a b) '(c d) '(e f))
(a b c d e f)
(append '(a b c) '(d e f) '(g h i j))
(a b c d e f g h i j)
list
引数を並べたリストを作る
(list 'a 'b 'c)
(a b c)
(list (quote(a b c d e)))
((a b c d e))
(list '(a b c d e))
((a b c d e))
(list '(a b) '(c d) '(e f))
((a b) (c d) (e f))
(list '(a b c) '(d e f) '(g h i j))
((a b c) (d e f) (g h i j))
cons
cons cells and list types
(setq auto-mode-alist (cons '("\\.m$" . matlab-mode) auto-mode-alist))
|