scala tag

41 questions


1 answers
300 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...

1 years ago

1 answers
432 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...

1 years ago

1 answers
103 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...

1 years ago

1 answers
88 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
95 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...

1 years ago

1 answers
110 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...

1 years ago

1 answers
115 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...

1 years ago

1 answers
134 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
92 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...

1 years ago

2 answers
83 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...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.