Posted in August 2012

Using Streams in Scala

Currently there is an interesting discussion happening at the Vienna Scala Enthusiasts google group about using streams in Scala. One short puzzler for you: val s = None #:: Stream.continually(Some(“A”)) val l = None :: Some(“A”) :: Some(“A”) :: Nil s.take(3) == l What does the Scala REPL output for the last expression? a) true … Continue reading

Customized Maven Dependency Diagrams

I wanted to have a diagram of Maven dependencies but just the ones with a certain groupId should be included. I do not know whether the m2e Eclipse plugin provided such a feature but with release 1.0 the dependency diagram feature was removed. IntelliJ IDEA Ultimate has a nice dependency diagram but you cannot filter … Continue reading