Questions tagged as 'scala'

2
answers

How to remove brackets from an array in scala

I have an array of dates [2014-11-08 06: 27: 00.0], and I would like to remove the brackets 2014-11-08 06: 27: 00.0. val conf = new SparkConf(true) .set("spark.cassandra.connection.host", "127.0.0.1").setAppName("CasteDate").setMaster("loca...
asked by 10.10.2016 / 11:46
1
answer

NoSuchElementException: None.get in play framework for scala

I created the upadte method, but when I test it it shows the error NoSuchElementException: None.get UserController object UserController extends Controller { def update(id:Long) = DBAction { implicit rs => var user = simpleUser...
asked by 30.01.2015 / 19:36
0
answers

Case class and Ordered implementation

Well, I'm implementing an avl tree in Scala, and I need some sort of comparison between the tree nodes, parameterized in type T. I'm trying to use Ordered for this, however, despite compiling, the compare does not work: case class Nodetr...
asked by 09.04.2018 / 21:25
1
answer

What does the object clause define in Scala?

By studying some projects, I found an intriguing code, where in addition to the class clause that defines an object, already known in Java, there is the object clause, unknown to me until then. object Counter { val InitialValue...
asked by 31.03.2017 / 00:15