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

scoder.Encode.scala Maven / Gradle / Ivy

The newest version!
package scoder

trait Encode[+F, -T] {
  def apply(to: T): F = encode(to)
  def encode(to: T): F
}
object Encode {

  def apply[F, T](f: T => F): Encode[F, T] = new Encode[F, T] {
    override def encode(to: T): F = f(to)
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy