Largest int from concatenated ints: Difference between revisions
m
→{{header|Perl 6}}: this is not so much of a python translation
m (→{{header|Perl 6}}: minor rewrite) |
m (→{{header|Perl 6}}: this is not so much of a python translation) |
||
Line 10:
=={{header|Perl 6}}==
<lang Perl 6>sub maxnum(@x) {
[~] sort -> $x, $y { $x~$y <=> $y~$x }, @x
|