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 xT and f(x)T.

See https://en.wikipedia.org/wiki/Function_(mathematics).

Implementation

typedef UnaryFunction<T> = T Function(T x);