diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-24 07:51:19 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-25 09:09:29 -0700 |
commit | c22ec635c75170d1ac1cb0074e532b4186eed845 (patch) | |
tree | 44713230e43a29b34bb87a41cc1719334fe32391 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala | |
parent | 5cf9499731255078de62c8f3704fa596b564bf0e (diff) | |
download | scala-c22ec635c75170d1ac1cb0074e532b4186eed845.tar.gz scala-c22ec635c75170d1ac1cb0074e532b4186eed845.tar.bz2 scala-c22ec635c75170d1ac1cb0074e532b4186eed845.zip |
Some long overdue conveniences.
Not just conveniences though. One of the clearest statements made
by profiling is that collections methods of the form of the enclosed
flatCollect are materially faster than the alternatives.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 1612253dd6..0d7ef71193 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -831,7 +831,7 @@ trait Implicits { /** Returns all eligible ImplicitInfos and their SearchResults in a map. */ - def findAll() = (eligible map (info => (info, typedImplicit(info, false)))).toMap + def findAll() = mapFrom(eligible)(typedImplicit(_, false)) /** Returns the SearchResult of the best match. */ |