- ;|
- _$$ (czr '(0 1 2 3 4))
- 4
- |;
- (defun czr (lst)
- (if (null (cadr lst))
- (car lst)
- (czr (cdr lst))
- )
- )
- ;|
- _$$ (cztr '(0 1 2 3 4))
- 3
- |;
- (defun cztr (lst)
- (if (null (caddr lst))
- (car lst)
- (cztr (cdr lst))
- )
- )
- ;|
- _$$ (czttr '(0 1 2 3 4))
- 2
- |;
- (defun czttr (lst)
- (if (null (cadddr lst))
- (car lst)
- (czttr (cdr lst))
- )
- )
- ;|
- _$$ (ctr '(0 1 2 3 4))
- (0 1 2 3)
- |;
- (defun ctr (lst)
- (if (null (cadr lst))
- nil
- (cons (car lst) (ctr (cdr lst)))
- )
- )
- ;|
- _$$ (cttr '(0 1 2 3 4))
- (0 1 2)
- |;
- (defun cttr (lst)
- (if (null (caddr lst))
- nil
- (cons (car lst) (cttr (cdr lst)))
- )
- )
- ;|
- _$$ (ctttr '(0 1 2 3 4))
- (0 1)
- |;
- (defun ctttr (lst)
- (if (null (cadddr lst))
- nil
- (cons (car lst) (ctttr (cdr lst)))
- )
- )
|