mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
first(g) was extracting two values, which, if g is slow, made first(g) slow. And if the second extraction were to throw an error, then first(g) would throw that error, which is clearly not the right thing to do. Besides that, first(g) was allocating garbage, which it no longer does.