Open ghostbuster91 opened 2 years ago
Currently val a: Seq[Int] = Nil will be rewritten to val a: Seq[Int] = List.empty which compiles but it is not ideal.
val a: Seq[Int] = Nil
val a: Seq[Int] = List.empty
It would be better to rewrite it to val a: Seq[Int] = Seq.empty
val a: Seq[Int] = Seq.empty
Currently
val a: Seq[Int] = Nil
will be rewritten toval a: Seq[Int] = List.empty
which compiles but it is not ideal.It would be better to rewrite it to
val a: Seq[Int] = Seq.empty