Is there an idiomatic way to iterate over all binary strings of a given length?

That would iterate over integers not strings, right? Or were you suggesting I write a new version which iterates over strings?