From: "Mauricio Fernández" Date: 2003-04-09T01:30:48+09:00 Subject: Re: Array Sutraction On Tue, Apr 08, 2003 at 11:35:02PM +0900, Jim Freeze wrote: > > > > I'd view the substraction "a-b" as "remove all elements in b from > > > > a", > > > > which would reasonable lead to all 2's removed from [1,1,2,2,2] > > > > yielding > > > > [1,1]. > > > > > > > > > So [1, 1, 2, 2] - [2] should yield the same as [1, 1, 2, 2] - [2, 2]? > > > That seems odd to me. > > > > I agree. But the presence of a Set in 1.8 > > maes me feel better. After all, an Array > > is not in itself a bag or a set, so we can > > Hmm, I was not aware that an Array was not a bag. > Can you give an example Hal. I believe he means that [1,1,2,2] - [2] => [1,1] instead of [1,1,2] -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Remember: While root can do most everything, there are certain privileges that only a partner can grant. -- Telsa Gwynne