We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1940ee commit d1c8f1eCopy full SHA for d1c8f1e
compiler/src/dotty/tools/repl/terminal/Utils.scala
@@ -178,8 +178,8 @@ object FrontEndUtils {
178
def transpose[A](xs: List[List[A]]): List[List[A]] = {
179
@tailrec def transpose(xs: List[List[A]], result: List[List[A]]): List[List[A]] = {
180
xs.filter(_.nonEmpty) match {
181
- case Nil => result
182
- case ys: List[List[A]] => transpose(ys.map(_.tail), ys.map(_.head) :: result)
+ case Nil => result
+ case ys => transpose(ys.map(_.tail), ys.map(_.head) :: result)
183
}
184
185
0 commit comments