All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cats.data.ScalaVersionSpecificNonEmptyChainImpl.scala Maven / Gradle / Ivy

The newest version!
package cats.data

private[data] trait ScalaVersionSpecificNonEmptyChainImpl {
  def fromSeq[A](as: scala.collection.Seq[A]): Option[NonEmptyChain[A]] =
    if (as.nonEmpty) Option(NonEmptyChainImpl.create(Chain.fromSeq(as))) else None
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy