[plt-scheme] Re: struct-eqv?

From: Stephen De Gabrielle (stephen at degabrielle.name)
Date: Tue Mar 10 20:50:19 EDT 2009

Thanks.


On 3/11/09, Chongkai Zhu <czhu at cs.utah.edu> wrote:
> 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)))
>
>
> Chongkai
>
> 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
>>
>
>

-- 
Sent from my mobile device

Cheers,

Stephen

--
Stephen De Gabrielle
s.degabrielle at cs.ucl.ac.uk
Telephone +44 (0)20 7679 0693 (x30693)
Mobile                  079 851 890 45
Project: Making Sense of Information (MaSI)
Work:http://www.uclic.ucl.ac.uk/annb/MaSI.html
Home:http://www.degabrielle.name/stephen


UCL Interaction Centre
MPEB 8th floor
University College London
Gower Street
London WC1E 6BT


Posted on the users mailing list.