Changeset 4251


Ignore:
Timestamp:
10/08/03 13:52:22 (19 years ago)
Author:
piso
Message:

Refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/copy-seq.lisp

    r2722 r4251  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: copy-seq.lisp,v 1.2 2003-07-02 17:55:16 piso Exp $
     4;;; $Id: copy-seq.lisp,v 1.3 2003-10-08 13:52:22 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    3939            result)))))
    4040
    41 (defun list-copy-seq* (sequence)
    42   (list-copy-seq sequence))
    43 
    44 (defun vector-copy-seq* (sequence)
    45   (vector-copy-seq sequence (type-of sequence)))
    46 
    4741(defun copy-seq (sequence)
    4842  (if (listp sequence)
    49       (list-copy-seq* sequence)
    50       (vector-copy-seq* sequence)))
     43      (list-copy-seq sequence)
     44      (vector-copy-seq sequence (type-of sequence))))
Note: See TracChangeset for help on using the changeset viewer.