本帖最后由 lanjqka 于 2014-1-11 12:48 编辑
;;ourappend- (defun ourappend (l1 l2)
- (if (null l2)
- nil
- (if (null l1)
- (cons (car l2) (ourappend l1 (cdr l2)))
- (cons (car l1) (ourappend (cdr l1) l2))
- )
- )
- )
;;ourlist- (defun ourlist (l1)
- (if (null l1)
- nil
- (cons (car l1) (ourlist (cdr l1)))
- )
- )
|