fixed<V> function

TValueGenerator fixed<V>(
  1. V value
)

Returns a generator that always returns the exact supplied value.

Implementation

TValueGenerator fixed<V>(V value) {
  return () => value;
}