Skip to content

Instantly share code, notes, and snippets.

@timoschilling
Created December 6, 2012 14:01
Show Gist options
  • Select an option

  • Save timoschilling/4224652 to your computer and use it in GitHub Desktop.

Select an option

Save timoschilling/4224652 to your computer and use it in GitHub Desktop.
[9,8].each.with_index(2).with_object([]).with_index(99){|((a,i1),s),i2| s << [a,i1,i2].join("-")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment