Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Array intersection

When you forget how easy ruby makes things, especially at a job interview...

a1 = ['alpha', 'bravo', 'charlie', 'delta', 'echo']
a2  = ['charlie', 'echo']
puts a1 - a2
# =>  ['alpha', 'bravo', 'delta']

puts a1 & a2
# =>  ['charlie', 'echo']

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors