mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
drop view for iterator in IMap
This commit is contained in:
@@ -62,7 +62,7 @@ object IMap
|
|||||||
|
|
||||||
def mapSeparate[VL[_], VR[_]](f: V ~> ({type l[T] = Either[VL[T], VR[T]]})#l ) =
|
def mapSeparate[VL[_], VR[_]](f: V ~> ({type l[T] = Either[VL[T], VR[T]]})#l ) =
|
||||||
{
|
{
|
||||||
val mapped = backing.view.map { case (k,v) => f(v) match {
|
val mapped = backing.iterator.map { case (k,v) => f(v) match {
|
||||||
case Left(l) => Left((k, l))
|
case Left(l) => Left((k, l))
|
||||||
case Right(r) => Right((k, r))
|
case Right(r) => Right((k, r))
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user