Skip to content

Commit

Permalink
don't convert immutable to Vector
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek committed Jan 11, 2025
1 parent 71e076b commit fdcff72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private[data] trait ChainCompanionCompat {
private def fromImmutableSeq[A](s: immutable.Seq[A]): Chain[A] = {
val lc = s.lengthCompare(1)
if (lc < 0) nil
else if (lc > 0) Wrap(s.toVector)
else if (lc > 0) Wrap(s)
else one(s.head)
}

Expand Down

0 comments on commit fdcff72

Please sign in to comment.