Generator (computer programming): Difference between revisions

Content deleted Content added
Line 381:
Stream.generate(new Supplier<Integer>() {
int a = 1, b = 2;
 
public Integer get() {
int temp = a;
Line 396 ⟶ 397:
return Stream.generate(new Supplier<Integer>() {
int a = 1, b = 2;
 
public Integer get() {
int temp = a;