Index finite lists of positive integers: Difference between revisions
Index finite lists of positive integers (view source)
Revision as of 20:58, 9 May 2014
, 10 years ago→{{header|Perl 6}}: s/20/10
m (→{{header|Go}}) |
m (→{{header|Perl 6}}: s/20/10) |
||
Line 194:
sub unrank(Int $n) { my ($a, $b) = expand($n, 2); expand $a, $b + 2 }
for ^
my @unrank = unrank $_;
say @unrank, " <-> ", rank @unrank;
|