views:

103

answers:

1

I'm a newbie to scala. I'm trying an example from the book "Programming Scala". The example can be get from here

The output under Scala 2.8 RC6: List: List: List:

I got the expected result under Scala 2.7.7: List: 1 3 23 90 List: 4 18 52 List:

I don't know why it doesn't work on Scala 2.8. Please help me to figure it out.

+2  A: 

The code works fine in Scala 2.8 RC6. Try to re-install it.

Aymen
You're right, I messed up with my installation, thanks.
Cuper Hector