OCLOperators foreach
No edit summary
(Updated Edited template to July 12, 2025.)
Line 13: Line 13:
[[Category:OCLOperators]]
[[Category:OCLOperators]]
[[Category:EAL]]
[[Category:EAL]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]

Revision as of 05:57, 20 January 2025

This page was created by Lars.olofsson@mdriven.net on 2021-12-13. Last edited by Stephanie@mdriven.net on 2025-02-11.

Note: This is an EAL operator

It iterates 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)

To iterate and return a list as the result, use collect.

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments