|Syntax of iterate operation [message #587864]
||Mon, 29 March 2010 10:54
Originally posted by: c.k.holmes.lboro.ac.uk|
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?
Powered by FUDForum
. Page generated in 0.03885 seconds