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

io.travisbrown.abstracted.Empty.scala Maven / Gradle / Ivy

The newest version!
package io.travisbrown.abstracted

/**
 * Wraps a value but doesn't have any other methods.
 */
case class Empty[A](a: A)

private[abstracted] final object Empty {
  implicit def convert[A, B](e: Empty[A])(implicit converter: Converter[A, B]): B = converter(e)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy