Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [MOFScript]
[MOFScript] [message #385348] Fri, 05 September 2008 11:19 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
In list->forEach(e){ print(e)} iteration, how to ignore certain element
in the list and print next element?



Thanks a lot!


Ye
Re: [MOFScript] [message #385350 is a reply to message #385348] Fri, 05 September 2008 13:01 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I'm not fluent in MOFScript, but the standard approach in
most languages would be to filter the list and then do the
foreach on the filtered list.

"yeliu " <yeliu@abo.fi> wrote in message
news:9031ef8e7e328c3667d6d43562e008af$1@www.eclipse.org...
> Hello,
> In list->forEach(e){ print(e)} iteration, how to ignore certain element
> in the list and print next element?
>
>
>
> Thanks a lot!
>
>
> Ye
Re: [MOFScript] [message #621760 is a reply to message #385348] Fri, 05 September 2008 13:01 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I'm not fluent in MOFScript, but the standard approach in
most languages would be to filter the list and then do the
foreach on the filtered list.

"yeliu " <yeliu@abo.fi> wrote in message
news:9031ef8e7e328c3667d6d43562e008af$1@www.eclipse.org...
> Hello,
> In list->forEach(e){ print(e)} iteration, how to ignore certain element
> in the list and print next element?
>
>
>
> Thanks a lot!
>
>
> Ye
Previous Topic:[MOFScript]
Next Topic:[Epsilon]cloning a model element in EOL
Goto Forum:
  


Current Time: Fri Dec 19 00:42:22 GMT 2014

Powered by FUDForum. Page generated in 0.01822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software