Type class for providing a default value for type A.
Low priority Default instances.
Type class proving an isomorphism between types A and B.
c.f.
c.f. "Press, William H. Numerical recipes 3rd edition: The art of scientific computing. Cambridge university press, 2007.", pp. 352
Default instances.
Utilities for scala.Functions.
Utilities for quiver.Graphs.
Factory methods and instances of isomorphism.
Memoizing different types of functions.
Memoizing different types of functions.
Calling a memoized function with a set of arguments for the first time will save the result in a cache - a mutable.Map, possibly user-provided. Calling it with the same set of arguments subsequently will not perform the computation, but retrieve the cached value instead.
This is useful for computations that are expensive and are performed many times with the same arguments.
However, functions need to be referentially transparent (i.e. have no side effects) to preserve correctness.
Missing instances of cats.Monoid.