Would anyone find feature (a) outlined below (adding isFirst and isLast parameters to loop, along the lines of https://issues.apache.org/jira/browse/TAP5-205) useful? If there is any interest I will raise a ticket and people can vote on it.
On Tue, 2008-11-11 at 10:55 +0000, Joel Halbert wrote: > Hi, > > Thoughts please on the following enhancements to Loop: > > > a) utility "parameters/methods" for isFirst and isLast iteration, maybe > something like: > > <t:loop .... > > <t:parameter name="isFirst"> > // hello! > </t:paramter> > <t:parameter name="isLast"> > // bye! > </t:paramter> > </t:loop> > > b) easy access to the current index value, without having to provide > your own. Although you can provide your own index, this gets messy when > using inner loops, since you need to reset the inner loop index on every > iteration of the outer loop. This seems like boiler plate that could be > incorporated into the framework. > > > If there are already nice patterns for doing the above please shout, if > not then let us know your thoughts on making these part of the framework > > Rgs, > > Joel > > -- SU3 Analytics Ltd The Print House 18 Ashwin Street E8 3DL London Tel: +44 (0) 20 3051 8637 Fax: +44 (0) 20 8196 2215 Mob: +44 (0) 79 7431 0685 www.su3analytics.com SU3 Analytics Ltd is a company registered in England and Wales under company number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ, United Kingdom. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]