Index finite lists of positive integers: Difference between revisions
Index finite lists of positive integers (view source)
Revision as of 08:56, 31 January 2024
, 4 months ago→jq: clarify
m (→jq: clarify) |
|||
Line 590:
implementation both support arbitrarily large literal integers, and
the `tonumber` filter retains precision allowing seamless
translation between strings and numbers. Thus, apart from machine limitations, the programs shown here should work for arbitrary positive integers, when used with these implementations of jq.
The following is slightly more verbose than it need be but for the sake of compatibility with jaq. Also note that trivial
changes would be required if using jaq as jaq does not (as of this writing in 2024) support
the `include` or `module` directives.
|