function library

Extensions

ChainExtension on T
ComposeExtension0 on A Function()
ComposeExtension1 on B Function(A)
ComposeExtension2 on C Function(A, B)
ComposeExtension3 on D Function(A, B, C)
ComposeExtension4 on E Function(A, B, C, D)

Functions

identity<T>(T value) → T
A functions that directly returns whatever was given to it.
lazy<A>(A value) Lazy<A>
Return a Lazy version of value.
memo1<A, R>(R f(A)) → R Function(A)
memo-ize the given function, caching the return result.
memo2<A, B, R>(R f(A, B)) → R Function(A, B)
memo-ize the given function, caching the return result.
memo3<A, B, C, R>(R f(A, B, C)) → R Function(A, B, C)
memo-ize the given function, caching the return result.
memo4<A, B, C, D, R>(R f(A, B, C, D)) → R Function(A, B, C, D)
memo-ize the given function, caching the return result.

Typedefs

Lazy<A> = A Function()
Represents a lazy value, which is a value returned from a function without arguments.