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

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

    Details

      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
      

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development