UnaryFunction<T> typedef
UnaryFunction<T> =
T Function(T x)
A function with a single argument and an identical return type. Typically
used for numerical functions like f(x) where x ∈ T
and f(x) ∈ T
.
Implementation
typedef UnaryFunction<T> = T Function(T x);