A self-type for a trait A: trait B trait A { this: B => } says that “A cannot be mixed into a concrete class that does not also...
An implicit question to newcomers to Scala seems to be: where does the compiler look for implicits? I mean implicit because the question never seems to get fully formed,...
Scala syntax has a lot of symbols. Since these kinds of names are difficult to find using search engines, a comprehensive list of them would be helpful. What are...
If I have an EnumeratorT and a corresponding IterateeT I can run them together: val en: EnumeratorT[String, Task] = EnumeratorT.enumList(List("a", "b", "c")) val it: IterateeT[String, Task, Int] = IterateeT.length...
I searched in Google to find the differences between a case class and a class. Everyone mentions that when you want to do pattern matching on the class, use...
I’ve taken a look at the list of surveys taken on scala-lang.org and noticed a curious question: “Can you name all the uses of “_”?”. Can you? If yes,...
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by...
Closed. This question needs to be more focused. It is not currently accepting answers. Closed 8 years ago. Locked. This question and its answers are locked because the question...
I’m just going over some Scala tutorials on the Internet and have noticed in some examples an object is declared at the start of the example. What is the...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question...