Definitely, +1.
Also, add reduceRight as well, even if it would only do the same as reduce.
Peter Michaux wrote:
In another thread, I'm told there is currently no plans to add the
following to Set.prototype.
some
every
reduce
filter
map
These seem like very natural additions and the type of
On Sat, Mar 30, 2013 at 6:13 AM, Mark S. Miller erig...@google.com wrote:
On Fri, Mar 29, 2013 at 6:21 PM, Allen Wirfs-Brock
al...@wirfs-brock.comwrote:
On Mar 7, 2013, at 11:05 AM, Andreas Rossberg wrote:
On 7 March 2013 18:30, Allen Wirfs-Brock al...@wirfs-brock.com wrote:
On Mar
On Fri, Mar 29, 2013 at 6:21 PM, Allen Wirfs-Brock al...@wirfs-brock.comwrote:
On Mar 7, 2013, at 11:05 AM, Andreas Rossberg wrote:
On 7 March 2013 18:30, Allen Wirfs-Brock al...@wirfs-brock.com wrote:
On Mar 7, 2013, at 7:37 AM, Andreas Rossberg wrote:
1) Are the methods of a generator
/ The most significant change from the meeting (and it really wasn't
// explicit on the whiteboard) is that generator prototypes don't have a
// constructor property that links back to its generator function instance.
// In other words, you can't say:
//
// function * ofCollection() {for (i
On Mar 30, 2013, at 7:05 AM, André Bargull wrote:
The most significant change from the meeting (and it really wasn't
explicit on the whiteboard) is that generator prototypes don't have a
constructor property that links back to its generator function instance.
In other words, you can't
I said this in the other thread but I don't mind repeating myself. A
better way forward is to provide these for iterators.
mySet.values().some(func)
mySet.values().every(func)
mySet.values().reduce(func)
new Set(mySet.values().filter(func))
new Set(mySet.values().map(func))
I'm not opposed to
Well, why not, but forEach, some, every, reduce[Right] and filter are very
natural operations useful for _any_ collection (map is harder). If Set has
forEach, it should have these as well. Of course, iterators could have them as
well.
It is strange if Array and iterators would have it, but
The order of iteration of a set is the order of insertion of elements
into the set. So reduce and reduceRight would actually be different. I
should have included reduceRight in my list.
Peter
On Sat, Mar 30, 2013 at 5:06 AM, Herby Vojčík he...@mailbox.sk wrote:
Definitely, +1.
Also, add
8 matches
Mail list logo