Skip to main content

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:

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.

var msbs : OrderedSet(Integer) := self.getFields().collect(field |
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?

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

Current Time: Thu May 24 06:35:53 GMT 2018

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

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

Back to the top