Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.
Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.
Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.
Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.
Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.
Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.
Returns true if the generator is empty.
Returns the most recently generated value by shallow copy.
Returns the most recently generated value without executing a copy contructor. Will not compile for element types defining a postblit, because Generator does not return by reference.
Obtains the next value from the underlying function.
A Generator is a Fiber that periodically returns values of type T to the caller via yield. This is represented as an InputRange.