ra’s avatarra’s Twitter Archive—№ 39,451

  1. …in reply to @AndrewJacksonZA
    @AndrewJacksonZA sort of. a generator is like a function that runs up to the first yield expression and returns a value. if it has more work to do, it can be run again at a different time until its next yield expression (which might be the same as the first one in the case of a loop)
    1. …in reply to @ra