Loops/Foreach: Difference between revisions

Content deleted Content added
Lingo added
Line 1,171: Line 1,171:
<lang lingo>days = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
<lang lingo>days = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
repeat with day in days
repeat with day in days
put day
put day
end repeat</lang>
end repeat</lang>
A callback-based forEach() can be implemented like this:
A callback-based forEach() can be implemented like this: