This should probably be lazy.  Replace brackets with parens to return generator instead of list.