Gaussian primes: Difference between revisions

→‎{{header|jq}}: document an assumption
(→‎{{header|jq}}: simplify)
(→‎{{header|jq}}: document an assumption)
Line 220:
end;
 
# Given a stream of non-null values, group by the values of `x|filter` that occur in a run.
# group by the values of `x|filter` that occur in a run.
def runs(stream; filter):
foreach (stream, null) as $x ({emit: false, array: []};
2,469

edits