[plt-scheme] struct-eqv?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Tue Mar 10 20:14:27 EDT 2009

Here I assume you are asking about struct-equal? instead of struct-eqv?.

None is build-in, but you can write one as:

(define (struct-equal? v1 v2)
  (equal? (struct->vector v1)
          (struct->vector v2)))


Stephen De Gabrielle wrote:
> Please forgive my ignorance,
> but is there a predicate for determining two different structs have
> the same field values?
> Cheers,
> Stephen
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.