scala tag

41 questions


2 answers
68 views
0
Why does it become a Java class even if scala passes the type parameters to the scala class?

Thank you for your help.I'm a beginner at scala. I'm worried because I don't know the reason for the following code behavior.scala>case class MyVector [A]() { def test(init:A) = { println(type=+ini...

1 years ago

2 answers
52 views
0
Why does it become a Java class even if scala passes the type parameters to the scala class?

Thank you for your help.I'm a beginner at scala. I'm worried because I don't know the reason for the following code behavior.scala>case class MyVector [A]() { def test(init:A) = { println(type=+ini...

1 years ago

1 answers
108 views
0
How to Handle Uncaught Exceptions in GlobalSettings.onError

Is there any way to comprehensively capture the supplementation of exceptions in play framework (2.3)?GlobalSettings.onError captures exceptions during normal request processing.defaction=Action{ Ok.c...

1 years ago

1 answers
76 views
0
How to Handle Uncaught Exceptions in GlobalSettings.onError

Is there any way to comprehensively capture the supplementation of exceptions in play framework (2.3)?GlobalSettings.onError captures exceptions during normal request processing.defaction=Action{ Ok.c...

1 years ago

3 answers
62 views
0
How can Scala explicitly resolve the ambiguity of overloaded methods?

Scala is trying to use the overloaded method provided in Java's library.class X { public<E>voidf(E...values) {System.out.println(1);} public void f(Object value) {System.out.println(2);}}However...

1 years ago

1 answers
95 views
0
To empty the DB value when editing in Play

I have created the following forms in playframework (2.5.6) case class User (age: Option [Int])value form = Form( mapping( age - > optional (number) (User.apply) (User.unapply))println(form.bindFro...

1 years ago

1 answers
80 views
0
Small and Medium CodeReading Products in Scala [Closed]

Do you want to improve this question?Edit this post and update the question to focus on one issueClosed 7 years ago.7 years agoRecently, I've been thinking about reading a glass book and entering the ...

1 years ago

1 answers
73 views
0
How to pass an implicit parameter when creating a function object

How should I pass an implicit parameter when I create a function object?If you do not specify anything, you will get an error (in the part of val process=): case class Cache (key:Int, value: String)US...

1 years ago

1 answers
70 views
0
Unable to import spray in scala.

As the sample code used a library called spray, I tried using the interpreter and got the following error:Scala itself has only just started recently, and I don't know how to deal with these cases.I t...

1 years ago

1 answers
79 views
0
I use IntelliJ for Apache Spark debugging, but I get an error every time.

It hasn't been long since I committed to apache park, but I recently had an error when I debacked the park object (park LR) from the example module.Specifically, the following message appears:C:\Users...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.