you can use the zip function to iterate on 2 enumerable at the same time

(0..9).zip(labellable_uuids) do |i, labellables_uuid|

However in that particular case, labellables_uuids.each_with_index seems more appropriate. Am i wrong ?