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

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

The newest version!
package cats
package data

abstract private[data] class ScalaVersionSpecificPackage {
  type NonEmptyStream[A] = OneAnd[Stream, A]

  def NonEmptyStream[A](head: A, tail: Stream[A] = Stream.empty): NonEmptyStream[A] =
    OneAnd(head, tail)

  def NonEmptyStream[A](head: A, tail: A*): NonEmptyStream[A] =
    OneAnd(head, tail.toStream)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy