Scala es funcional-objektala programifo-linguo altanivela kreita ye 2001 da Martin Odersky.
object SalutoMondo { def main(args: Array[String]): Unit = { println("Saluto, mondo!") } }
def qsort(list : List[Int]): List[Int] = list match { case Nil => Nil case pivot :: tail => { val (smaller, rest) = tail partition (_ < pivot) qsort(smaller) ::: pivot :: qsort(rest) } }
This article uses material from the Wikipedia Ido article Scala (programifo-linguo), which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). La kontenajo esas disponebla sub CC BY-SA 4.0, ecepte kande kontree mencionata. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki Ido (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.