Scala Projects Classified Properly
We just fixed an issue where some Scala projects were being misclassified as Java projects. Now, recent projects like Twitter’s FlockDB and Gizzard show up in the Scala language dashboard…
We just fixed an issue where some Scala projects were being misclassified as Java projects. Now, recent projects like Twitter’s FlockDB and Gizzard show up in the Scala language dashboard as they should.
package examples
/** Quick sort, functional style */
object sort1 {
def sort(a: List[Int]): List[Int] = {
if (a.length < 2)
a
else {
val pivot = a(a.length / 2)
sort(a.filter(_ < pivot)) :::
a.filter(_ == pivot) :::
sort(a.filter(_ > pivot))
}
}
def main(args: Array[String]) {
val xs = List(6, 2, 8, 5, 1)
println(xs)
println(sort(xs))
}
}
You can also use Scala syntax highlighting in Gist now. It’s bonus.
Written by
Related posts
GitHub Availability Report: December 2024
In December, we experienced two incidents that resulted in degraded performance across GitHub services.
Inside the research: How GitHub Copilot impacts the nature of work for open source maintainers
An interview with economic researchers analyzing the causal effect of GitHub Copilot on how open source maintainers work.
OpenAI’s latest o1 model now available in GitHub Copilot and GitHub Models
The December 17 release of OpenAI’s o1 model is now available in GitHub Copilot and GitHub Models, bringing advanced coding capabilities to your workflows.