Top "Scala" questions

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

Restart elasticsearch node

What is the proper way to restart node in elasticsearch? (preferably via the REST API, java API might be ok …

java scala elasticsearch
Convert List of tuple to map (and deal with duplicate key ?)

I was thinking about a nice way to convert a List of tuple with duplicate key [("a","b"),("c","d"),("…

scala map
How to construct Dataframe from a Excel (xls,xlsx) file in Scala Spark?

I have a large Excel(xlsx and xls) file with multiple sheet and I need convert it to RDD or …

excel scala apache-spark apache-spark-sql spark-excel
How to quit scala 2.11.0 REPL?

In the last version of scala (2.10.3) REPL, I can type exit to quit from REPL. However, in Scala 2.11.0 this doesn't …

scala scala-2.11
scala vs java, performance and memory?

I am keen to look into Scala, and have one basic question I cant seem to find an answer to: …

java performance scala memory
Iterating over Java collections in Scala

I'm writing some Scala code which uses the Apache POI API. I would like to iterate over the rows contained …

java scala collections scala-java-interop
How to read environment variables in Scala

In Java, reading environment variables is done with System.getenv(). Is there a way to do this in Scala?

scala environment-variables
What is the idiomatic scala way of finding, if a given string contains a given substring?

I have two strings in scala and I want to find out, if the bigger string (needle) contains a smaller …

regex string scala substring contains
How do I get the Scala version from within Scala itself?

This is not about command-line compiler options. How do I programmatically obtain the Scala version inside code? Alternatively, where does …

scala version
Adding an item to an immutable Seq

Say, I have a sequence of strings as an input and I want to get a new immutable Seq which …

list scala seq