Foreach loop: Difference between revisions

Content deleted Content added
{{for|"for all" in logic (∀)|Universal quantification}}
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 15:
 
== Syntax ==
Syntax varies among languages. Most use the simple word <code>for</code>, although other use the more logical word <code>foreach</code>, roughly as follows:
 
forforeach(key, each itemvalue) in collection: {
do# Do something to itemvalue #
}
 
== Language support ==