by shigemk2

当面は技術的なことしか書かない

destructuring-bindはデフォルト値やキーワード引数も使える

(destructuring-bind (&optional a (b 2)) '(1)
  (list a b))				; => (1 2)
(destructuring-bind (a &rest b) '(1 2 3)
  (list a b))				; => (1 (2 3))
(destructuring-bind (&key a b) '(:a 10 :b 20)
  (list a b))				; => (10 20)

P193

Emacs Lispテクニックバイブル

Emacs Lispテクニックバイブル