Scala Programming Language
  1. Scala Programming Language
  2. SI-7215

Transpose on empty Array throws NoSuchElementException

    Details

      Description

      It appears empty arrays cannot be transposed without throwing an error. This is inconsistent with other collection types in Scala.

      To reproduce:

      Array[Array[Int]]().transpose

        Activity

        Show
        Jason Zaugg added a comment - https://github.com/scala/scala/pull/2198

          People

          • Assignee:
            Jason Zaugg
            Reporter:
            Andrew Stanton
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development