au.id.tmm.utilities.collection.syntax.package.scala Maven / Gradle / Ivy
package au.id.tmm.utilities.collection
import scala.collection.BuildFrom
package object syntax {
implicit def iteratorOps[A](iterator: Iterator[A]): IteratorOps[A] = new IteratorOps[A](iterator)
implicit def seqOps[C[_], A](
seq: C[A],
)(implicit
buildFrom: BuildFrom[C[A], A, C[A]],
ev: C[A] <:< Seq[A],
): SeqOps[C, A] =
new SeqOps[C, A](seq)
implicit def iterableOps[C[_], A](
iterable: C[A],
)(implicit
buildFrom: BuildFrom[C[A], A, C[A]],
ev: C[A] <:< Iterable[A],
): IterableOps[C, A] =
new IterableOps[C, A](iterable)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy