[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] must list-copy handle cycles?
- To: scheme-reports <scheme-reports@x>
- Subject: [Scheme-reports] must list-copy handle cycles?
- From: Per Bothner <per@x>
- Date: Mon, 02 Jul 2012 13:28:53 -0700
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