When trying to create a very large Range lets say from 1L to Long.MaxValue you get this error:
java.lang.IllegalArgumentException: 1 to 9223372036854775807 by 1: seqs cannot contain more than Int.MaxValue elements.
However, I can do Stream.from(1) which is infinite size and thereby contradicts this error message that seqs cannot have more than Int.MaxValue elements. I think this is because a Range is an IndexedSeq which has this size limitation, whereas a Stream is a LinearSeq?
I'm also curious why there is a limit, if your dealing with numeric ranges 1 to Infinite is just as valid as 1 to 5, so why limit the size of them at all?