Modifying `mapcat' to work on generators