Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-5201

Seq.view.flatten does not return a view but creates a new Seq.

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.1
    • Fix Version/s: Scala 2.10.0-M3, Scala 2.10.0
    • Component/s: None
    • Labels:
      None

      Description

      val seq = Seq(Seq(1, 2), Seq(3, 4)).view.flatten
      println(seq.getClass)
      

      Should print SeqView[...], but I see

      class scala.collection.immutable.$colon$colon
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              jsuereth Josh Suereth
              Reporter:
              atry 杨博
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: