Reproduction steps
Scala version: 2.13.10
Problem
Implementing IndexedSeq and not overriding head leads to an IOOBE being thrown, contrary to NSEE mentioned in the specification. This does not affect Vector, as it overrides head.
The same goes for last.
Reproduction steps
Scala version: 2.13.10
Problem
Implementing
IndexedSeqand not overridingheadleads to an IOOBE being thrown, contrary to NSEE mentioned in the specification. This does not affectVector, as it overrideshead.The same goes for
last.