Loops/Foreach: Difference between revisions
Content added Content deleted
Line 1,238: | Line 1,238: | ||
=={{header|Oforth}}== |
=={{header|Oforth}}== |
||
<lang Oforth>func: |
<lang Oforth>func: printMonths { | o | Date.Months forEach: o [ o println ] }</lang> |
||
But, apply can be used instead of a loop : |
But, apply can be used instead of a loop : |