scala
Scala - get function name
I have a function foo w开发者_StackOverflow社区hich takes another function (say bar) as a parameter. Is there a way to get the function name of bar as a string inside foo?No. See the difference betwee[详细]
2023-04-11 16:31 分类:问答Recursive blocks in Scala Play Framework templates
I\'m writing a template for a blog post, which has threaded comments. A natural way of writing a template for threaded comments it use a recursive way for constructing the Html. Something like this:[详细]
2023-04-11 16:03 分类:问答Difference between similar curried types in Scala
What is the difference between the types of the following two functions? def add1: Int => Int => Int = a => b => a + b[详细]
2023-04-11 15:13 分类:问答SCALA Lift - Call javascript with params from Comet actor
I\'m trying to get a comet class to call some javascript with params but can\'t seem to find the right way to go about it.[详细]
2023-04-11 15:12 分类:问答How to access a Java static method from Scala given a type alias for that class it resides in
Given the type-alias type Cal = java.util.Calendar how can the static getInstance method be accessed? I tried the following in Scala REPL:[详细]
2023-04-11 15:01 分类:问答Android, Scala and Proguard
After running headfirst into as many problems as there are permutations of the set of Andr开发者_JAVA百科oid command-line tools, I finally managed to compile a mix of Scala and Java source code into a[详细]
2023-04-11 14:36 分类:问答What's the difference between == and .equals in Scala?
What is the difference between == and .equals() in Scala, and when to use which? Is the implementation same as in Java?[详细]
2023-04-11 13:15 分类:问答Are actors the right tool to implement the messaging between a simple multiplayer game?
I\'m thinking about using actors for a simple Asteroid-like game written in Scala and Java2D, which can be played by two players in a cooperative mode.[详细]
2023-04-11 13:04 分类:问答Turning a list/sequence of combinator parsers into a single one
I have a list of values from which I开发者_如何学JAVA can construct a list of parsers, that depend on these values by mapping (see example). Then what I want to do is turn the list of parsers into a s[详细]
2023-04-11 12:29 分类:问答String pattern matching best practice
Following is the code that doesn\'t work but it describes what I want to do. Could you please recommend the best approach to this problem?[详细]
2023-04-11 11:54 分类:问答