Hi all,
How to get similar elements from a array in Ruby.
eg : [[1,2],[11,2],[23,89]]
when i give input 1 i should get all arrays like [[1,2],[11,2]]
Thanks in advance…
Hi all,
How to get similar elements from a array in Ruby.
eg : [[1,2],[11,2],[23,89]]
when i give input 1 i should get all arrays like [[1,2],[11,2]]
Thanks in advance…
Define “similar”.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs