Different sequence matching output in Scala 2.8

I am new to scala. I am trying to give an example from the book "Scala Programming". An example can be obtained from here.

Exit to Scala 2.8 RC6: List: List: List:

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

I do not know why it does not work on Scala 2.8. Please help me sort it out.

+3
source share
1 answer

The code works fine in Scala 2.8 RC6. Try reinstalling it.

+2
source

Source: https://habr.com/ru/post/1751500/


All Articles