Enumerate using block.