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

scala.reactive.calc.RefValFun.scala Maven / Gradle / Ivy

The newest version!
package scala.reactive
package calc






/** A function from an object `T` to a value `S`.
 *
 *  '''Note:''' A Scala standard library function that maps from primitive types
 *  to value types will undergo boxing.
 *  This trait exists to avoid this.
 *
 *  @param T      the source primitive type `T`
 *  @param S      the target value type `S`
 */
trait RefValFun[-T, @specialized(Int, Long, Double) +S] {
  def apply(x: T): S
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy