Loops/Foreach: Difference between revisions
Content deleted Content added
Moved NS-HUBASIC, VBA, VBScript to existing BASIC section |
Moved Gambas to existing BASIC section |
||
Line 383: | Line 383: | ||
<pre> |
<pre> |
||
1 2 3 4 5 6 7 8 9 10 11 |
1 2 3 4 5 6 7 8 9 10 11 |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{out}} |
|||
⚫ | |||
⚫ | |||
</pre> |
</pre> |
||
Line 1,094: | Line 1,110: | ||
List.iter (fun i -> printfn "%d" i) [1 .. 10]</lang> |
List.iter (fun i -> printfn "%d" i) [1 .. 10]</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Output: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|GAP}}== |
=={{header|GAP}}== |