Re: set (+) set = bag ?

2017-07-30 Thread Parrot Raiser
I'm tempted to ask how to classify "Yes, sir, no, sir, 3 bags full". Does the constitute a Boolean, numeric, or set operation, or some combination thereof? :-)* On 7/21/17, Darren Duncan wrote: > On 2017-07-21 1:33 PM, Elizabeth Mattijsen wrote: >>> On 21 Jul 2017, at

Re: set (+) set = bag ?

2017-07-21 Thread Darren Duncan
On 2017-07-21 1:33 PM, Elizabeth Mattijsen wrote: On 21 Jul 2017, at 21:30, Darren Duncan wrote: Firstly, I believe ∆ (U+2206) is the standard symbol for symmetric difference, and not circled minus as the above url currently gives.

Re: set (+) set = bag ?

2017-07-21 Thread Elizabeth Mattijsen
> On 21 Jul 2017, at 21:30, Darren Duncan wrote: > > On 2017-07-21 5:07 AM, Timo Paulssen wrote: >> You want (|) to get the union of two sets as a set. >> >> https://docs.perl6.org/language/setbagmix#Set%2FBag_Operators >> >> hth >> - Timo > > Right. Every set

Re: set (+) set = bag ?

2017-07-21 Thread Darren Duncan
On 2017-07-21 5:07 AM, Timo Paulssen wrote: You want (|) to get the union of two sets as a set. https://docs.perl6.org/language/setbagmix#Set%2FBag_Operators hth - Timo Right. Every set operation except 1 (multiset sum) should result in a set, and is just a special case of the same

Re: set (+) set = bag ?

2017-07-21 Thread Gabor Szabo
On Fri, Jul 21, 2017 at 2:07 PM, Timo Paulssen wrote: > You want (|) to get the union of two sets as a set. > > https://docs.perl6.org/language/setbagmix#Set%2FBag_Operators > > hth > - Timo Oh thanks. Now I see there is also a link just under the "Operators" section of the

Re: set (+) set = bag ?

2017-07-21 Thread Timo Paulssen
You want (|) to get the union of two sets as a set. https://docs.perl6.org/language/setbagmix#Set%2FBag_Operators hth - Timo

set (+) set = bag ?

2017-07-21 Thread Gabor Szabo
Looking at Sets https://docs.perl6.org/type/Set I was happy to see (-) to work as I expected, but I was surprised to see that (+) created a bag. Is that intentional? How can I get back the set. Is the only way using the unicode character ∪ ? (This is Rakudo version 2017.04.3 so I might be behind