[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scheme-reports] must list-copy handle cycles?



The text for list-copy seems to suggest that it must handle
cyclic lists, but it doesn't explicitly say so.

The Common Lisp Hyperspec says of copy-list:
   The consequences are undefined if list is a circular list.

If list-copy must handle cycles, what's a good algorithm?
-- 
	--Per Bothner
per@x   http://per.bothner.com/


_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports