scala tag

41 questions


1 answers
331 views
0
Scala is unable to execute code successfully.

After setting up the scala development environment and executing the following code, There is an error and it cannot be executed properly.How can I start it well?object Hello { defmain(args:Array [Str...

2 years ago

1 answers
462 views
0
I cannot build a scala environment.

I think java has been installed, but >javac-versionjavac1.8.0_302Probably because stb is not installed well, IDE cannot use scala C:\>sbtsbt-version[warn]Neither build.sbt nor a'project' directo...

2 years ago

1 answers
134 views
0
How to pre-initialize objects in scala

trite Aobject B extensions A { println(B)}object Sequences A { println(C)}object Main { defmain(args:Array [String]):Unit={ println (RUN) }}At this time, the standard output is RUNwill only be display...

2 years ago

1 answers
106 views
0
SQL Injection Countermeasures Using Slick in Playframework 2

Currently, I am trying to list the words entered from the form that match the title.defindByWord(word:String): Future [Seq[Item]]=db.run{ Query.filter(row=>(row.title like % + word+%).result}This i...


1 answers
122 views
0
Why is the class sold in Scala?

Why isn't scala.collection.mutable.TreeMap sold and other Map (for example, HashMap)?(Furthermore, the immutable TreeMap was final, and HashMap was sold, so no modifier criteria could be found.)I thou...

2 years ago

1 answers
145 views
0
I want to write a two-way circular link list in Scala.

I'm a beginner at Scala (I read a cup book but I don't understand many things) This is my first time asking stack overflow questions, so please let me know if there are any points that I don't underst...

2 years ago

1 answers
149 views
0
Is there a way to specify a timeout individually instead of an implicit value in the Ask of Scala Ask?

I have looked around some sample codes for Ask in Scala's Actor, all of which have implicitly set the timeout as implicit val timeout=Timeout(5seconds) as shown in the following URL:Does that mean tha...

2 years ago

1 answers
168 views
0
How do I define when the constructor arguments and table column names do not match in Skinny-ORM?

Assume you have the following tables and classes:sqlcreate table `sample`.`member`(id serial, name varchar(64));class case class member (id: Long, hoge: String)I would like to map the name column of t...


2 answers
118 views
0
If I do with Router in akka, I can't get context.parent.

If the parent-child actor uses withRouter() to configure the router, the child will not be able to see context.parent.I asked because I wanted to know the solution and the reason.First of all, the con...

2 years ago

2 answers
104 views
0
If I do with Router in akka, I can't get context.parent.

If the parent-child actor uses withRouter() to configure the router, the child will not be able to see context.parent.I asked because I wanted to know the solution and the reason.First of all, the con...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.