MeasureFn<T> typedef

double MeasureFn (
  1. T
)

A function that returns the measurement of a given instance of type T.

For numbers, their measurement is simply their value. For dates, their measurement is milliseconds since the Unix Epoch.

Implementation

typedef MeasureFn<T> = double Function(T);