ruby doesn't have inject_with_index! it does now :)