Loops/Continue: Difference between revisions
Content added Content deleted
(jq) |
|||
Line 697: | Line 697: | ||
output += ", "; |
output += ", "; |
||
}</lang> |
}</lang> |
||
=={{header|jq}}== |
|||
jq does not have a "continue" statement. In jq 1.4, the simplest way to accomplish the given task is probably as follows: |
|||
<lang jq>reduce range(1;11) as $i |
|||
(""; . + "\($i)" + (if $i % 5 == 0 then "\n" else ", " end))</lang> |
|||
=={{header|Lasso}}== |
=={{header|Lasso}}== |