Generator (computer programming): Difference between revisions

Content deleted Content added
Line 378:
 
 
Also thea infinite Fibonacci sequence could also be written using '''java 8''' Stream interface:
<source lang="java">
Stream.generate(new Supplier<Integer>() {