Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Collect vs Select(Collect vs Select)
Collect vs Select [message #1858172] Mon, 20 March 2023 00:50 Go to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Hello

Can you please. explain difference between collect operation vs select operation

Thanks
Arseniy Isakov
Re: Collect vs Select [message #1858179 is a reply to message #1858172] Mon, 20 March 2023 10:33 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Arseniy,

collect evaluates its expression parameter for every item of the collection it is called on and collects/returns the results, while select returns a subset of the collection it is called on that only contain elements that satisfy the parameter expression.

Please see https://www.eclipse.org/epsilon/playground/?fc2ca7e5 for a minimal example.

Thanks,
Dimitris
Previous Topic:Importing dynamic content from a resource
Next Topic:Running Pinset from Ant Workflow
Goto Forum:
  


Current Time: Sat Apr 27 10:45:56 GMT 2024

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

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

Back to the top