Changeset 3829
- Timestamp:
- 09/16/03 18:00:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/butlast.lisp
r2281 r3829 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: butlast.lisp,v 1. 1 2003-06-11 00:43:20piso Exp $4 ;;; $Id: butlast.lisp,v 1.2 2003-09-16 18:00:18 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 23 23 24 24 (defun butlast (list &optional (n 1)) 25 (unless ( listp list)25 (unless (and (listp list) (typep n '(integer 0))) 26 26 (error 'type-error)) 27 27 (unless (null list) … … 38 38 39 39 (defun nbutlast (list &optional (n 1)) 40 (unless ( listp list)40 (unless (and (listp list) (typep n '(integer 0))) 41 41 (error 'type-error)) 42 42 (unless (null list)
Note: See TracChangeset
for help on using the changeset viewer.