Basic set operations?
Erik Arvidsson
erik.arvidsson at gmail.com
Mon Jun 9 08:33:27 PDT 2014
Most of these could just be methods of iterators and then they could be
used for different data structures seemlessly.
On Mon Jun 09 2014 at 3:19:20 AM, Calvin Metcalf <calvin.metcalf at gmail.com>
wrote:
> Many of the Set specific methods would also be useful if they worked on
> the keys of Maps.
> On Jun 7, 2014 3:44 PM, "Hemanth H.M" <hemanth.hm at gmail.com> wrote:
>
>> Yup, a generic collection API.
>> On Jun 7, 2014 7:10 PM, "Calvin Metcalf" <calvin.metcalf at gmail.com>
>> wrote:
>>
>>> If you would like to help write a library for them
>>>
>>> https://github.com/calvinmetcalf/set.up
>>>
>>> Another idea would be a generic collections API for maps, sets, arrays,
>>> and other types of collections down the line like queues, trees, tries, etc
>>> On Jun 7, 2014 3:13 PM, "Barronville, Jonathan" <jonathan at belairlabs.com>
>>> wrote:
>>>
>>>> Yes ... +++1.
>>>>
>>>> - Jonathan
>>>> —
>>>> Sent from Mailbox <https://www.dropbox.com/mailbox>
>>>>
>>>>
>>>> On Sat, Jun 7, 2014 at 9:05 AM, Hemanth H.M <hemanth.hm at gmail.com>
>>>> wrote:
>>>>
>>>>> Would it be useful to implement basic set operations as below?
>>>>>
>>>>> * merge
>>>>> * subset?
>>>>> * superset?
>>>>> * union
>>>>> * intersection
>>>>> * complements
>>>>> * difference
>>>>> * cartesian
>>>>> * copy
>>>>>
>>>>> So on?
>>>>>
>>>>>
>>>>> --
>>>>> *'I am what I am because of who we all are'*
>>>>> h3manth.com <http://www.h3manth.com>
>>>>> *-- Hemanth HM *
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> es-discuss mailing list
>>>> es-discuss at mozilla.org
>>>> https://mail.mozilla.org/listinfo/es-discuss
>>>>
>>>> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140609/ad28a66b/attachment-0001.html>
More information about the es-discuss
mailing list