scala-library-next
                                
                                 scala-library-next copied to clipboard
                                
                                    scala-library-next copied to clipboard
                            
                            
                            
                        backwards-binary-compatible Scala standard library additions
The idea of an [_interval_](https://en.wikipedia.org/wiki/Interval_(mathematics)) is central to a large portion of programming logic. Please consider defining a bounded or half-open interval type in the core Scala lib. Currently, the...
I have found myself wanting to `map` a collection into a **Map** similar to `groupMap` but where the key is always the `identity` and the groups will always have one...
Scala 2.13.x As noted by @smarter [here](https://gitter.im/scala/contributors?at=5f45740736e6f709fd00eec1), builders for `Map`s just use the regular `Builder` interface, and do not expose a way to add elements without creating tuples. However, several...
Regular `lazyZip` does not handle the situation where an element cannot be discarded but rather a default value should be used.
I feel like having a `sortedTo(factory)` _(as well as all the other sorting variants)_ on `Iterator` would be a good addition. It would be good to discuss if it can...
IMHO it is pretty common to wanting to create a collection of a single element. Whereas you can always use the `apply` that accepts a _varargs_, I personally would prefer...
Clamping numbers between an upper and lower bound is a relatively-common task, specially in graphics domain. * https://en.wikipedia.org/wiki/Clamping_(graphics) * [DotNet's math](https://docs.microsoft.com/en-us/dotnet/api/system.math.clamp?view=netcore-3.0 ) * [Android's MathUtils](https://developer.android.com/reference/android/support/v4/math/MathUtils.html#clamp(double,%20double,%20double)) * [CSS math function](https://developer.mozilla.org/en-US/docs/Web/CSS/clamp) Currently,...
See discussions at scala/collection-strawman#88 and scala/collection-strawman#341.
Similar to #8 the only reason why **Iterators** _(or **IterableOnce** in general)_ do not have `groupBy` & `groupMap` is because, you can not have a `Map[K, Iterator[V]]` without consuming the...
It keeps coming up, and we still don't have it. Even if we have to have `Option` and `UOption` in the stdlib at the same time, I think it's probably...