Constructs a new stack generator with the given value accessor.
value
See call for usage.
Stack(this.value);