Changeset 7676 for branches


Ignore:
Timestamp:
Nov 18, 2007, 10:10:41 PM (17 years ago)
Author:
Gary Byers
Message:

MAKE-LIST moved here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/level-0/l0-aprims.lisp

    r7624 r7676  
    180180(setf (type-predicate 'semaphore) 'semaphorep)
    181181
     182(defun make-list (size &key initial-element)
     183  "Constructs a list with size elements each set to value"
     184  (unless (and (typep size 'fixnum)
     185               (>= (the fixnum size) 0))
     186    (report-bad-arg size '(and fixnum unsigned-byte)))
     187  (locally (declare (fixnum size))
     188    (do* ((result '() (cons initial-element result)))
     189        ((zerop size) result)
     190      (decf size))))
     191
    182192; end
Note: See TracChangeset for help on using the changeset viewer.