Anonymous user
Index finite lists of positive integers: Difference between revisions
Index finite lists of positive integers (view source)
Revision as of 15:44, 13 May 2014
, 10 years ago→Bijective
(→{{header|Perl 6}}: using Test) |
|||
Line 174:
=== Bijective ===
Using the method of the Python version (shifted):
<lang j> rank=. 1 -~ #.@:(1 , >@:(([ , 0 , ])&.>/)@:(<@:($&1)"0))@:x:
|