Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion intersection
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Dietz  
View profile  
 More options Jan 28 2004, 3:33 pm
Newsgroups: comp.lang.lisp
From: Paul Dietz <paul.f.di...@motorola.com>
Date: Wed, 28 Jan 2004 14:18:01 -0600
Local: Wed, Jan 28 2004 3:18 pm
Subject: Re: intersection

Tuang wrote:
> Both of these replies (thank you, BTW) seem to be saying that the
> result of performing an intersection on lists containing duplicate
> members is undefined, at least with respect to the number of
> duplicates that may show up in the result. That's a much stronger
> statement than the "may have duplicates" line in the spec.

No, they're about the same.

> The spec made a big point about how "nintersection" was destructive to
> one of its inputs,

No, the spec does not say that nintersection is destructive
to list-1.  It says it *may* be destructive.  This is an important
difference: a conforming program cannot count on the first list
being modified.  The implementation has the freedom to modify it,
but it not required to do so.  Making nintersection do exactly the
same thing as intersection would be acceptable in a conforming
implemention of Common Lisp.

> I didn't think "may have duplicates" would imply "the
> number of members in the result is so undefined that even within the
> same implementation the length of X i'sect Y isn't guaranteed to be
> the same as the length of Y i'sect X.

Where did it say they had to be the same?  This is not stated
in the spec, so why were you imagining it is required?

        Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.