O(1), it also must be very fast
O(1)in the library so far. I would say
O(log n)is more like
O(n)(in the sense that
O(log n)^2is less than
O(n)), so if it happened somehow to take
O(log n)time to compute
knownSizeit probably should be computed instead of returning
Iteratorwithout looping myself? Wouldn't
lastOptionmake sense for them (I know the other right-oriented variants
dropRightwere removed earlier from the strawman as they would require buffering, but
lastOptionwould only need a buffer of size one)?
appendedAll, but there's a
StrictOptimizedIterableOps#concatthat gets mixed in later..
concatenate" implies an order, but the paint's dry on that shed, I'm sure)
SortedSetLike? I see no mention of it in https://github.com/scala/collection-strawman/wiki/FAQ#how-do-i-cross-build-my-project-against-scala-212-and-scala-213
updateInPlaceWith(key: K, f: V => V): this.type?
f: Option[V] => Vor
ifPresent: V => V, ifAbsent: => V
compute) by using
nullif it's absent, but that seems like not a great idea in Scala (arguably not a great idea in Java either)