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

dynamical.seq.scala Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package dynamical.seq

case object EOS

extension [A] (as: Seq[A])

  def through[B](p: Seq[A] => Seq[B]): Seq[B] =
    p(as)

  def noneTerminate: Seq[Option[A]] =
    as.map(v => Some(v)) :+ None

  def noneTerminate2: Seq[Option[A]] =
    as.map(v => Some(v)) :+ None :+ None




© 2015 - 2024 Weber Informatics LLC | Privacy Policy