I have latest IntelliJ installed (10.0.1) with the Scala plugin. Whenever I run something in a console, I get an error.
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
A following C code uses enum and array as efficient \"map\" from enum to anything: enum Color { ColorRed, ColorGreen, ColorBlue, ColorSize};
On Squeryl getting started page there is a Scala开发者_如何学编程 code sample: import sbt._ class Project(info: ProjectInfo) extends DefaultProject(info) {
Suppose I have a list of strings and I use zipWithIndex to transform it to a list of tuples: List(\"a\", \"b\", \"c\").zipWithIndex
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
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:
I have an interface in Java that looks something like this: public interface X<T> { Set<Class<? extends T>> getTypes();
My problem is very simple but I haven\'t found an efficient implementation yet. Suppose there is a matrix A like this:
Adding two Set[Int] works: Welcome to Scala version 2.8.1.final (Java HotSpot(TM) Server VM, Java 1.6.0_23).