|
From: | Stefan Israelsson Tampe |
Subject: | Re: Will guile support R7RS terminating "equal?" in the presence of cycle? |
Date: | Tue, 4 Sep 2012 07:35:03 +0200 |
Yes, so it is no real replacement. For that we need yo hamdle vectors , structs etc. Eg cycles is only allowed in the pair part.
If we wan't this for the general case, please ask!
/stefan
Hi,
Stefan Israelsson Tampe <address@hidden> skribis:
> (define (c-equal-1 x y)
> (match x
> (((and xx (_ . _)) . _)
[...]
> ((xx . _)
[...]
> (_ (equal? x y))))
Doesn’t this mean that ‘cycle-equal?’ falls back to ‘equal?’ for
non-pairs?
Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |