快乐无限
Would you like to react to this message? Create an account in a few clicks or log in to continue.
快乐无限

快乐无限,永远无限!


您没有登录。 请登录注册

Common Lisp Single Element Compare

向下  留言 [第1页/共1页]

1Common Lisp Single Element Compare Empty Common Lisp Single Element Compare 周六 二月 06, 2010 11:01 pm

黑龙王


论坛使者
论坛使者

Common Lisp Single Element Compare:
代码:
(defun my-equal-p (x y)
(cond
((and (consp x) (consp y)) (and (my-equal-p (rest x) (rest y)) (number-compare (first x) (first y))))
(t (number-compare x y)))
)

返回页首  留言 [第1页/共1页]

您在这个论坛的权限:
不能在这个论坛回复主题