We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8875af commit cfb3472Copy full SHA for cfb3472
src/library/scala/collection/immutable/VectorMap.scala
@@ -95,11 +95,11 @@ final class VectorMap[K, +V] private[immutable] (
95
}
96
97
override def tail: VectorMap[K, V] = {
98
- new VectorMap(fields.tail, underlying.remove(fields.last))
+ new VectorMap(fields.tail, underlying.remove(fields.head))
99
100
101
override def init: VectorMap[K, V] = {
102
- new VectorMap(fields.init, underlying.remove(fields.head))
+ new VectorMap(fields.init, underlying.remove(fields.last))
103
104
105
// Only care about content, not ordering for equality
0 commit comments