Sort an integer array: Difference between revisions

m
→‎{{header|Scala}}: Rm Scala imp category
(Shorter code using ooRexx-provided sorting)
m (→‎{{header|Scala}}: Rm Scala imp category)
Line 1,393:
 
=={{header|Scala}}==
[[Category:Scala Implementations]]{{libheader|Scala}}
===Array===
Scala's "default" Array is a ''mutable'' data structure, very close to Java's Array. Generally speaking, that means an "array" is not very Scala-lesque, even as mutable data structures go. It can serves a purpose, though. If array is the right data type for your need, then that is how you sort it.<lang Scala>import scala.compat.Platform
Anonymous user