Advent of Code Day 3-Eternal Generators

added by DotNetKicks
12/4/2017 1:51:39 PM

1 Kicks, 311 Views

In yesterday's post we saw our first example of an ES6 " generator function ". The generator function we created yesterday emitted a finite sequence, but today we're generating a "spiral" of positions, and we can use a generator function to emit an infinite sequence of positions.