[M3devel] iterating over sets?
Jay
jay.krell at cornell.edu
Wed Oct 31 13:12:11 CET 2007
Let's say I had
TYPE T = SET OF { 0 .. 256 };
Must I say:
VAR t: T;
FOR i := FIRST(t) TO LAST(t)
IF i IN t DO
something with i
END
END
Surely there's a better way involving scanning forward for the next bit more than one bit at a time?
- Jay
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20071031/e1343ac6/attachment-0001.html>
More information about the M3devel
mailing list