Anonymous user
Largest int from concatenated ints: Difference between revisions
m
→{{header|Ceylon}}
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 380:
=={{header|Ceylon}}==
{{trans|Kotlin}}
{{works with|Ceylon|1.
<lang ceylon>shared void
function
assert (
return yx <=> xy;
}
function biggestConcatenation({Integer*} ints) => "".join(ints.sort(
value test1 = {1, 34, 3, 98, 9, 76, 45, 4};
value test2 = {54, 546, 548, 60};▼
▲ value test2 = {54, 546, 548, 60};
▲ print("``biggestConcatenation(*test1)`` and ``biggestConcatenation(*test2)``");
print(biggestConcatenation(test2));
}</lang>
|