Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a.zip(b).map{|n,p| n*p}
#or
a.sort_by{ |b0, b1|b0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment