Skip to content

Instantly share code, notes, and snippets.

@mattb20
Created January 8, 2018 14:41
Show Gist options
  • Save mattb20/ee7f418415581d7750f167f5ff41dfc9 to your computer and use it in GitHub Desktop.
Save mattb20/ee7f418415581d7750f167f5ff41dfc9 to your computer and use it in GitHub Desktop.
checking array for matching elements
count = 0
for i in 0...arr1.length.to_i
if arr1[i] === arr2[i]
count +=1
else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment