Top "Scala" questions

Scala is a general-purpose programming language principally targeting the Java Virtual Machine.

How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?

I'm using SBT (within IntelliJ IDEA) to build a simple Scala project. I would like to know what is the …

scala intellij-idea sbt meta-inf uberjar
Difference between method and function in Scala

I read Scala Functions (part of Another tour of Scala). In that post he stated: Methods and functions are not …

function scala methods
Reduce, fold or scan (Left/Right)?

When should I use reduceLeft, reduceRight, foldLeft, foldRight, scanLeft or scanRight? I want an intuition/overview of their differences - …

scala scala-collections reduce fold
How do I read a parquet in PySpark written from Spark?

I am using two Jupyter notebooks to do different things in an analysis. In my Scala notebook, I write some …

python scala apache-spark pyspark data-science-experience
How to create SBT project with IntelliJ Idea?

I just got started with Scala/LiftWeb/Sbt developing, and I'd like to import a Sbt project in IntelliJ Idea. …

scala intellij-idea lift sbt
How to see dependency tree in sbt?

I am trying to inspect the SBT dependency tree as described in the documentation: sbt inspect tree clean But I …

scala dependencies sbt
How to access test resources in Scala?

I have a file data.xml in src/test/resources/. How can I read that file into a new FileReader …

scala sbt
Scala framework for a Rest API Server?

We are thinking on moving our Rest API Server (it is inside the web service, on Symfony PHP) to Scala …

api rest scala lift
How to store custom objects in Dataset?

According to Introducing Spark Datasets: As we look forward to Spark 2.0, we plan some exciting improvements to Datasets, specifically: ... Custom …

scala apache-spark apache-spark-dataset apache-spark-encoders
Using comparison operators in Scala's pattern matching system

Is it possible to match on a comparison using the pattern matching system in Scala? For example: a match { case 10 =&…

scala pattern-matching