While I was going through scaladoc of Range, I read that it is possible to create Range with more than MAX_VALUE elements. And it is safe to call some operations like head, drop, take.
However, when I tried it, ai was getting exception.
1 to 3456789128 take 2
I thought it will successfully create Range(1,2), but it threw exception on running it.
What is wrong in the way I did? Or did I understand the doc wrongly?