Index finite lists of positive integers: Difference between revisions

Content added Content deleted
m (elided an errant right parenthesis.)
m (→‎{{header|Perl}}: add libheader)
Line 472: Line 472:
The base-11 approach requires <code>bigint</code> pragma for all but trivial lists. Using <code>ntheory</code> module for base conversions.
The base-11 approach requires <code>bigint</code> pragma for all but trivial lists. Using <code>ntheory</code> module for base conversions.
{{trans|Perl 6}}
{{trans|Perl 6}}
{{libheader|ntheory}}
<lang perl>use bigint;
<lang perl>use bigint;
use ntheory qw(fromdigits todigitstring);
use ntheory qw(fromdigits todigitstring);