Skip to content

Instantly share code, notes, and snippets.

@Adsidera
Created June 5, 2020 08:35
Show Gist options
  • Save Adsidera/d2c88adec7d0f925593cc135edffbac4 to your computer and use it in GitHub Desktop.
Save Adsidera/d2c88adec7d0f925593cc135edffbac4 to your computer and use it in GitHub Desktop.
Challenge
array1 = %w{ a b c}
array2 = %w{ b c d}
puts array1.select {|num| array2.include? num }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment