Hi Tomsy,

> Please tell me how sets can be implemented in chapel.

Chapter 19.2.2 in the spec tells us:

> Associative domains represent an arbitrary set of indices of a given type and 
> can be used to describe sets ...


> I read that Associative domains can be used. + does union, isn't it?

That's correct.

Check out this table for an overview of the set operations that are supported 
on associative domains and arrays:

http://chapel.cray.com/docs/master/builtins/internal/ChapelArray.html#set-operations-on-associative-domains-and-arrays

Hope this helps.

Best,
Ben


On 6/2/17, 9:49 AM, "Tomsy Paul" <[email protected]> wrote:

    Dear all,
    
    
    Please tell me how sets can be implemented in chapel. I read that 
Associative domains can be used. + does union, isn't it? But what about 
intersection? 
    
    
    Is there any other way of implementing set? Please help..
    
    


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to