Re: Extending standard library of arrays

2011-07-11 Thread Dmitry A. Soshnikov
On 11.07.2011 2:42, David Bruant wrote: Le 10/07/2011 22:46, Dmitry A. Soshnikov a écrit : Here I put some extensions for arrays standard library (separated from this thread: https://mail.mozilla.org/pipermail/es-discuss/2011-July/015856.html where Array.of and Array.from were considered).

Re: Extending standard library of arrays

2011-07-11 Thread David Bruant
Le 11/07/2011 14:29, Dmitry A. Soshnikov a écrit : On 11.07.2011 2:42, David Bruant wrote: Le 10/07/2011 22:46, Dmitry A. Soshnikov a écrit : Here I put some extensions for arrays standard library (separated from this thread: https://mail.mozilla.org/pipermail/es-discuss/2011-July/015856.html

Re: Extending standard library of arrays

2011-07-11 Thread Dmitry A. Soshnikov
On 11.07.2011 16:49, David Bruant wrote: Le 11/07/2011 14:29, Dmitry A. Soshnikov a écrit : On 11.07.2011 2:42, David Bruant wrote: Le 10/07/2011 22:46, Dmitry A. Soshnikov a écrit : Here I put some extensions for arrays standard library (separated from this thread:

Re: Extending standard library of arrays

2011-07-11 Thread David Herman
My point is that the map spec is a deterministic algorithm because side-effects would be noticeable otherwise. However, this prevent implementations where function calls would be done in parallel for instance (for better performances). In some cases (like the one I showed), the exact

Re: Extending standard library of arrays

2011-07-11 Thread Mark S. Miller
On Mon, Jul 11, 2011 at 8:32 AM, David Herman dher...@mozilla.com wrote: My point is that the map spec is a deterministic algorithm because side-effects would be noticeable otherwise. However, this prevent implementations where function calls would be done in parallel for instance (for

Extending standard library of arrays

2011-07-10 Thread Dmitry A. Soshnikov
Here I put some extensions for arrays standard library (separated from this thread: https://mail.mozilla.org/pipermail/es-discuss/2011-July/015856.html where Array.of and Array.from were considered). We can consider also the following (as a first step): *- Array.prototype.remove(value, all)*

Re: Extending standard library of arrays

2011-07-10 Thread Dmitry A. Soshnikov
In addition, here's Erlang's one, which has rich lists library -- http://www.erlang.org/doc/man/lists.html Some/most methods are already implemented in JS of course (though, by different names), but we can take missing, but needed (and thus implemented in many JS libs) methods. Dmitry. On

Re: Extending standard library of arrays

2011-07-10 Thread David Bruant
Le 10/07/2011 22:46, Dmitry A. Soshnikov a écrit : Here I put some extensions for arrays standard library (separated from this thread: https://mail.mozilla.org/pipermail/es-discuss/2011-July/015856.html where Array.of and Array.from were considered). We can consider also the following (as a

Re: Extending standard library of arrays

2011-07-10 Thread Rick Waldron
As a sidenote, but with regard to forEach, can someone point me to some documentation that explains why the generic form of forEach doesn't work with objects (the use case has sufficient history) Rick -- Sent from my Palm Pre On Jul 10, 2011 6:42 PM, David Bruant lt;david.bru...@labri.frgt;