just<T> function

Generator<T> just<T>(
  1. T value
)

Generates value and nothing else.

Draws nothing, so it costs no choices and there is nothing to shrink: a constant among generated values, which is how a fixed part of a compound value is written.

Implementation

Generator<T> just<T>(T value) => _JustGenerator<T>(value);