Skip to content

Instantly share code, notes, and snippets.

@stueccles
Created October 15, 2015 18:53
Show Gist options
  • Save stueccles/5a063454f27ac0955371 to your computer and use it in GitHub Desktop.
Save stueccles/5a063454f27ac0955371 to your computer and use it in GitHub Desktop.
Iterate with Index
for {img, index} <- Enum.with_index(product_images) do
product.imagery.each_with_index do |image, index|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment