]> granicus.if.org Git - jq/commit
Simplify definition of range/3
authorMuh Muhten <muh.muhten@gmail.com>
Tue, 26 Feb 2019 10:22:18 +0000 (05:22 -0500)
committerNico Williams <nico@cryptonector.com>
Tue, 26 Feb 2019 17:05:25 +0000 (11:05 -0600)
commitfc6df0fdc1a130575e3f2074cae56e221cca7038
treeb732551100f81edd593c8792981ced741e8ee650
parent78271b179a125bc2a4b38479e03314157d3319e6
Simplify definition of range/3

New implementation in terms of while/2, and branches immediately on $by
to avoid checking the sign of $by *in* the loop.
src/builtin.jq