Created
September 6, 2014 02:43
-
-
Save shimomura1004/1228bc6cd4e031b322bf to your computer and use it in GitHub Desktop.
defun と defvar の違い
This file contains 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
;; 関数の名前空間に定義 | |
(defun f (x y) (+ x y)) | |
(f 1 2) | |
(funcall #'f 1 2) | |
;; 変数の名前空間に定義 | |
(defvar g (lambda (x y) (+ x y))) | |
(funcall g 1 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment