Re: [patch] Get Last X elements from resource collection

2006-12-12 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > first and last seem fine to me (:-) In which case, no name change and would be a convenience addition post 1.7.0. I guess that works. -Matt > Peter > > > On 12/12/06, Matt Benson <[EMAIL PROTECTED]> > wrote: > > > > --- Kev Jackson <[EMAIL PROTE

Re: [patch] Get Last X elements from resource collection

2006-12-12 Thread Peter Reilly
first and last seem fine to me (:-) Peter On 12/12/06, Matt Benson <[EMAIL PROTECTED]> wrote: --- Kev Jackson <[EMAIL PROTECTED]> wrote: > > > with first & last, we should also consider > renaming to > > "head" & "tail" as suggested by (IIRC) Jan or > Antoine. > > I'd prefer a "head" & "tail"

Re: [patch] Get Last X elements from resource collection

2006-12-12 Thread Matt Benson
--- Kev Jackson <[EMAIL PROTECTED]> wrote: > > > with first & last, we should also consider > renaming to > > "head" & "tail" as suggested by (IIRC) Jan or > Antoine. > > I'd prefer a "head" & "tail" naming style too, it > matches functional > list programming style, but your the main dev on

Re: [patch] Get Last X elements from resource collection

2005-09-28 Thread Kev Jackson
with first & last, we should also consider renaming to "head" & "tail" as suggested by (IIRC) Jan or Antoine. I'd prefer a "head" & "tail" naming style too, it matches functional list programming style, but your the main dev on this stuff it's up to you :) I just saw an opportunity to ch

Re: [patch] Get Last X elements from resource collection

2005-09-28 Thread Matt Benson
--- Kev Jackson <[EMAIL PROTECTED]> wrote: > If you need to get the first X elements, presumably > there will be > occasions where you'll need to get the last X > elements. Anyway, I've > been playing with Haskell recently and it's affected > my thinking :) Hi Kev, I've been (mostly) away for

[patch] Get Last X elements from resource collection

2005-09-26 Thread Kev Jackson
If you need to get the first X elements, presumably there will be occasions where you'll need to get the last X elements. Anyway, I've been playing with Haskell recently and it's affected my thinking :) Kev Index: D:/java_projects/ant-core-trunk/src/main/org/apache/tools/ant/types/resources/L