Skip to content

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…

Author

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.

Explore more from GitHub

Engineering

Engineering

Posts straight from the GitHub engineering team.
GitHub Universe 2024

GitHub Universe 2024

Get tickets to the 10th anniversary of our global developer event on AI, DevEx, and security.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.