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

japgolly.microlibs.utils.Platform.scala Maven / Gradle / Ivy

The newest version!
package japgolly.microlibs.utils

import japgolly.univeq.UnivEq

trait Platform {

  def memo[A: UnivEq, B](f: A => B): A => B

  final type LooseMemo[A, B] = (A, => B) => B

  def looseMemo[A: UnivEq, B](): LooseMemo[A, B]

  def memoInt[A](f: Int => A): Int => A

  def memoThunk[A](f: () => A): () => A
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy