OCLOperators foreach
No edit summary
No edit summary
Line 10: Line 10:
|}
|}
For iterating and returning a list as the result, use [[OCLOperators collect|collect]]
For iterating and returning a list as the result, use [[OCLOperators collect|collect]]
[[Category:OCLOperators]]

Revision as of 12:38, 7 December 2022

Note: This is an EAL operator

Interates a collection containing and executing the expression on all elements contained in self.

Expression Result
(list of objects)->forEach(str | str.DoSomething) The method DoSomething is called once on each of the objects in (list of objects)

For iterating and returning a list as the result, use collect

This page was edited 89 days ago on 02/10/2024. What links here