I think `if`s would be a nicer demonstration, yeah. As-is this doesn't show the power of generators with regard to control flow primitives at all, i.e. it's too easy to go "well why did you just put them in an array like a normal person?"