diff --git a/spawning-pool-core/src/main/scala/com/htmlism/spawningpool/combinatorics/specialized/HomogenousCombinator.scala b/spawning-pool-core/src/main/scala/com/htmlism/spawningpool/combinatorics/specialized/HomogenousCombinator.scala index b7c6777..b4fe8d1 100644 --- a/spawning-pool-core/src/main/scala/com/htmlism/spawningpool/combinatorics/specialized/HomogenousCombinator.scala +++ b/spawning-pool-core/src/main/scala/com/htmlism/spawningpool/combinatorics/specialized/HomogenousCombinator.scala @@ -1,5 +1,6 @@ package com.htmlism.spawningpool.combinatorics.specialized +import scala.collection.immutable.ArraySeq import scala.reflect.ClassTag import com.htmlism.spawningpool.combinatorics @@ -8,6 +9,6 @@ trait HomogenousCombinator[A] extends combinatorics.HomogenousCombinator[A] { implicit def classTag: ClassTag[A] override def fill(size: Int): (=> A) => Seq[A] = { fill => - Array.fill[A](size)(fill) + ArraySeq.unsafeWrapArray(Array.fill[A](size)(fill)) } }