Index finite lists of positive integers: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: "out" was not defined. Probably meant "s")
(adding extra credit)
Line 8: Line 8:


Demonstrate your solution by picking a random-length list of random positive integers, turn it into an integer and get the list back.
Demonstrate your solution by picking a random-length list of random positive integers, turn it into an integer and get the list back.


'''Extra credit''':

Make rank as a [[wp:bijection|bijection]] and show unrank(n) for n varying from 0 to 10.


=={{header|D}}==
=={{header|D}}==