scala-2.8
Why does console in IDEA 10 fail with "tools is not a member of package scala"?
I have latest IntelliJ installed (10.0.1) with the Scala plugin. Whenever I run something in a console, I get an error.[详细]
2023-02-07 11:52 分类:问答Compile String to AST inside CompilerPlugin?
I would like to create a templating plugin and as the first step convert an arbitrary string to it\'s \"compiled\" AST representation (as the scala interpreter does, I guess). So a compiler plugin cou[详细]
2023-02-07 10:26 分类:问答Efficient map with case class as a key in Scala?
A following C code uses enum and array as efficient \"map\" from enum to anything: enum Color { ColorRed, ColorGreen, ColorBlue, ColorSize};[详细]
2023-02-07 09:13 分类:问答Best approach to reading Scala DSL code?
On Squeryl getting started page there is a Scala开发者_如何学编程 code sample: import sbt._ class Project(info: ProjectInfo) extends DefaultProject(info) {[详细]
2023-02-06 06:21 分类:问答How to add unzipWithIndex to all Scala collections where it makes sense
Suppose I have a list of strings and I use zipWithIndex to transform it to a list of tuples: List(\"a\", \"b\", \"c\").zipWithIndex[详细]
2023-02-05 21:47 分类:问答Scala Compiler - How to inspect symbol table?
As far as I know, the state of comp开发者_JAVA技巧iler consists of the AST and the symbol table.I can inspect the AST with -Xprint or -Ybrowse. How can I inspect the symbol table? Part of the solution[详细]
2023-02-05 06:26 分类:问答Fill List with values from a for loop in Scala
I\'m pretty new to scala and I am not able to solve this (pretty) 开发者_C百科trivial problem. I know I can instantiate a List with predefined values like this:[详细]
2023-02-04 08:20 分类:问答Return a Java collection of type and subclasses from Scala
I have an interface in Java that looks something like this: public interface X<T> { Set<Class<? extends T>> getTypes();[详细]
2023-02-03 15:23 分类:问答How to find same-value rectangular areas of a given size in a matrix most efficiently?
My problem is very simple but I haven\'t found an efficient implementation yet. Suppose there is a matrix A like this:[详细]
2023-02-03 09:32 分类:问答Adding two Set[Any]
Adding two Set[Int] works: Welcome to Scala version 2.8.1.final (Java HotSpot(TM) Server VM, Java 1.6.0_23).[详细]
2023-02-03 03:04 分类:问答