Basic set operations?
# Barronville, Jonathan (11 years ago)
Yes ... +++1.
Yes ... +++1. - Jonathan — Sent from 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 * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140607/4cd491ce/attachment.html>
# Calvin Metcalf (11 years ago)
If you would like to help write a library for them
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
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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140607/29e91bff/attachment.html>
# Hemanth H.M (11 years ago)
Yup, a generic collection API.
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 >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140607/5312b868/attachment.html>
# Calvin Metcalf (11 years ago)
Many of the Set specific methods would also be useful if they worked on the keys of Maps.
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 >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140609/40b58f80/attachment.html>
# Erik Arvidsson (11 years ago)
Most of these could just be methods of iterators and then they could be used for different data structures seemlessly.
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>
# Tab Atkins Jr. (11 years ago)
In other words, just look at what Python did, and only change things when you're sure there was a mistake; Python got a lot of this correct from the start, and the legacy cruft is pretty minimal.
On Mon, Jun 9, 2014 at 8:33 AM, Erik Arvidsson <erik.arvidsson at gmail.com> wrote: > Most of these could just be methods of iterators and then they could be used > for different data structures seemlessly. In other words, just look at what Python did, and only change things when you're sure there was a mistake; Python got a lot of this correct from the start, and the legacy cruft is pretty minimal. ~TJ
# Hemanth H.M (11 years ago)
Holy goodness www.collectionsjs.com
Holy goodness http://www.collectionsjs.com/ On Jun 9, 2014 10:33 PM, "Tab Atkins Jr." <jackalmage at gmail.com> wrote: > On Mon, Jun 9, 2014 at 8:33 AM, Erik Arvidsson <erik.arvidsson at gmail.com> > wrote: > > Most of these could just be methods of iterators and then they could be > used > > for different data structures seemlessly. > > In other words, just look at what Python did, and only change things > when you're sure there was a mistake; Python got a lot of this correct > from the start, and the legacy cruft is pretty minimal. > > ~TJ > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140617/513d4f40/attachment.html>
Would it be useful to implement basic set operations as below?
So on?