Created
September 5, 2012 06:39
-
-
Save Liutos/3631848 to your computer and use it in GitHub Desktop.
传递一个不需要的参数的递归函数,纯粹测试。
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
;;; 下面的函数定义中参数c没有使用到,在我的系统上使用SBCL,在TopLevel中输入下面的表达式会抛出警告,说变量c没有使用。 | |
(defun my-plus (a b c) | |
(if (zerop b) | |
a | |
(my-plus (1+ a) (1- b) nil))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment