scala-library-next
                                
                                 scala-library-next copied to clipboard
                                
                                    scala-library-next copied to clipboard
                            
                            
                            
                        backwards-binary-compatible Scala standard library additions
AFAIK, there isnt an easy way to get and remove an entry from a Map in a single lookup. `remove` removes it but doesnt expose the removed value. The desired...
Please consider adding the `merge` method to `mutable.Map`. Java defines the method as follows, see [java docs](https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#merge-K-V-java.util.function.BiFunction-) ```scala /** If the specified key is not already associated with a value...
I know we are not wanting a big Scala library and such but this is where we could make some things easier for beginners or just for easy scripting. I...
I'm constantly doing (or variations of): ```scala list.map { a => val value = //some code to compute the value, mostly likely using `a` a.name -> value }.toMap ``` Which...
Proposed addition of `IterableOps.groupFlatMap`. Some questions before this gets merged: - I see there are extension methods on `IterableOnce` which would be more general, but I don't think it's possible...
The Akka codebase implemented `ByteString` which is a highly optimized datastructure for dealing with strings that are backed by bytes in an immutable rope like data structure. There is a...
The Akka codebase contains various interopt datatypes (functions, tuples, partial matchers) which are datatypes that are used within codebases that have heavy Java and Scala interopt. Rather than `scala-java8-compat` which...
LongMap's is a performance oriented addition, yet updating it requires two lookups because the updateWith function is delegated to MapOps. Furthermore, updateWith deals with the 'XT' `Option[A] => Option[A]` remap...
``` List(1, 2, 3, 4).takeWhile(_ != 3) // List(1, 2) List(1, 2, 3, 4).takeUntil(_ == 3) // List(1, 2, 3) ```
We already have `IterableOps.groupMap` and `groupMapReduce` methods, does it make sense to add a `groupFlatMap` method as well? In the simplest case this could just be an alias for `groupMapReduce(f)(g)(_...