The implementation would not be trivial, the simple method structure wouldn't 
easily support this type of control flow.  Plus it would be difficult to get 
the xsd right, allowing the operation to appear only within the iterable 
operations but possibly deeply nested.

Regards
Scott

On 22/06/2011, at 10:12 PM, Adrian Crum wrote:

> A <break/> element would be a useful addition to mini-language. If anyone is 
> interested in creating it, I will take a look at it.
> 
> -Adrian
> 
> On 6/22/2011 10:04 AM, Pierre Smits wrote:
>> Hi all,
>> 
>> I am stumped... I need to iterate through a list to find the the first entry
>> given a set of parameters in a simple-method, but how do I escape from the
>> iteration after having found the entry?
>> 
>> I know that in groovy I can do a while loop and if I have found the entry I
>> can issue a 'break; and close the iteration. But how do I do this in the
>> interation in a simple-method?
>> 
>> Regards,
>> 
>> Pierre
>> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to