On Fri, Jul 12, 2002 at 12:35:18PM -0400, darren chamberlain wrote: > I think a more general splice would be more correct and more generally > useful. Something like [...]
> You could create first/last/etc methods in terms of splice: ...and also a slice() in terms of a splice(), simply ignoring the last argument, for those who don't expect 'slice' to be spelled with a 'p'. :-) > And so on. Attached is a diff against the version in CVS (2.64), but > not tests yet. If it's generally useful, we can commit it. It looks good to me, and I hear no complaints, so go ahead and commit it. We will, of course, need documentation for splice, slice, first(n) and last(n) virtual methods... in docsrc/src/Manual/Variables.tt2 in case any other volunteers care to whip up a quick patch... :-) I need to whack out another developer release, and hopefully, 2.08 before the end of the week (i.e. TPC6), so if we can get it in RSN then it'll make the next release. Thanks guys. A
