Jump to content

Loops/Continue: Difference between revisions

jq
(jq)
Line 697:
output += ", ";
}</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}}==
2,507

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.