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.
2 parents d347cfa + 374b26d commit f2d871cCopy full SHA for f2d871c
core/src/main/scala/cats/data/NonEmptySeq.scala
@@ -227,11 +227,11 @@ final class NonEmptySeq[+A] private (val toSeq: Seq[A]) extends AnyVal with NonE
227
* universal .toString method.
228
*/
229
def show[AA >: A](implicit AA: Show[AA]): String =
230
- s"NonEmptySeq(${toSeq.map(Show[AA].show).mkString(", ")})"
+ s"NonEmptySeq(${toSeq.iterator.map(AA.show).mkString(", ")})"
231
232
def length: Int = toSeq.length
233
234
- override def toString: String = s"NonEmptySeq(${toSeq.map(_.toString).mkString(", ")})"
+ override def toString: String = s"NonEmptySeq(${toSeq.iterator.map(_.toString).mkString(", ")})"
235
236
/**
237
* Remove duplicates. Duplicates are checked using `Order[_]` instance.
0 commit comments