Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Syntax of iterate operation
Syntax of iterate operation [message #587864] Mon, 29 March 2010 10:54
Eclipse UserFriend
Originally posted by: c.k.holmes.lboro.ac.uk

Hi,
I would like to use the EOL iterate operation on a collection of objects
of type OrderedSet, however I'm having difficulty understanding the
syntax of the operation.

e.g.
var msbs : OrderedSet(Integer) := self.getFields().collect(field |
field.msb).asOrderedSet();
var maxMsb : Integer := 0;
msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));

The iterate operation fails to parse, although I think this conforms to
the format identified in the Epsilon book. This form also fails to parse:
msb := msbs.iterate(msb; x=0 | msb.max(x));

I'm obviously doing something daft, can someone correct my mistake?

Regards
Chris
Previous Topic:EVL file not getting called?
Next Topic:Syntax of iterate operation
Goto Forum:
  


Current Time: Thu Nov 27 22:28:57 GMT 2014

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

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