cashew.utils.array 0.1a.2

Chris Nicholson-Sauls ibisbasenji at gmail.com
Wed Sep 13 05:49:54 PDT 2006


Lionello Lunesu wrote:
> Chris Nicholson-Sauls wrote:
> 
>> I've been pushing for some array utilities to get into Phobos, yes, 
>> but in the meantime I updated the array module in my personal Cashew 
>> lib.  Included in the updates are the rotl/rotr that I recall someone 
>> asking about.  In the process I've discovered two bugs, as well: the 
>> behavior of 'is' versus '==' is incompatable if the operands are 
>> arrays, and DDoc for abbreviated function templates is borked.  For an 
>> example of the latter, just look at Cashew's own docs.
> 
> 
> 
> Nice.. I hope something like this will make it into Phobos at some 
> point, since everybody seems to have implemented these functions anyway..
> 
> One remark though: your removeAll is pretty slow. It should be enough to 
> iterate the array only once. A indexOf that takes a starting_index would 
> be a simple fix.
> 
> L.

True.  And fixed.  The functions 'indexOf', 'indexOfSub', 'rindexOf', and 'rindexOfSub' 
now all take an optional 'start' parameter.

-- Chris Nicholson-Sauls
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: array.d
Url: http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20060913/04c69027/attachment.txt 


More information about the Digitalmars-d-announce mailing list