Index finite lists of positive integers: Difference between revisions

Line 583:
simple concatenation of the encodings. However, the Fibonacci
encoding of an integer can begin with 0s, so here we simply reverse
the bit string and remove the leading "1" to produce an ordinary integer.
 
For example: 1 2 3 => 11 011 0011 => 110110011 => 110011011 => 10011011
 
The Go implementation of jq and, as of version 1.6, the C
2,489

edits