Largest int from concatenated ints: Difference between revisions

→‎{{header|Oforth}}: Bad solution, removing
(→‎{{header|Oforth}}: Bad solution, removing)
Line 727:
# icsort [54;546;548;60];;
- : string = "6054854654"
</pre>
 
=={{header|Oforth}}==
 
<lang Oforth>func: largestInt { map(#asString) sortWith(#>) sum asInteger }</lang>
 
{{out}}
<pre>
[ [1, 34, 3, 98, 9, 76, 45, 4], [54, 546, 548, 60] ] map(#largestInt) println
[989764543431, 6054854654]
</pre>
 
1,015

edits