I understand Ruby and Python’s yield. What does Scala’s yield do? 10 Answers 10
What’s a simple and canonical way to read an entire file into memory in Scala? (Ideally, with control over character encoding.) The best ...
-
May 12, 2022
- 0 Comments
I never understood it from the contrived unmarshalling and verbing nouns ( an AddTwo class has an apply that adds two!) examples. I ...
-
May 12, 2022
- 0 Comments
I have heard the term “coalgebras” several times in functional programming and PLT circles, especially when the discussion is about objects, comonads, lenses, ...
-
May 12, 2022
- 0 Comments
What is the formal difference in Scala between braces and parentheses, and when should they be used?
What is the formal difference between passing arguments to functions in parentheses () and in braces {}? The feeling I got from the ...
-
May 11, 2022
- 0 Comments
Sealed classes are described in ‘Programming in Scala’, but sealed traits are not. Where can I find more information about a sealed trait? ...
-
May 11, 2022
- 0 Comments
All I know about TypeTags is that they somehow replaced Manifests. Information on the Internet is scarce and doesn’t provide me with a ...
-
May 10, 2022
- 0 Comments
How do I get around type erasure on Scala? Or, why can’t I get the type parameter of my collections?
It’s a sad fact of life on Scala that if you instantiate a List...
What is the advantage of using an abstract class instead of a trait (apart from performance)? It seems like abstract classes can be ...
-
May 8, 2022
- 0 Comments