Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you removed from array in ruby?



How can you removed from array in ruby?..

Answer / Ganesh Yadav

In Ruby, you can remove an element from an array using either the `delete` method or the `delete_at` method. The difference is that `delete` removes the first occurrence of the specified value and returns it if found, while `delete_at` removes the element at the specified index.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What's the difference in scope for these two variables: @name and @@name?

1 Answers  


Explain about variables?

1 Answers  


What is mvc and why do we use it?

1 Answers  


How would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


what is the difference between String and Symbol?

1 Answers  


What are differences between ruby and python?

1 Answers  


What is the use of interpolation in ruby?

1 Answers  


What are the loops in ruby?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


What is ruby?

1 Answers  


What are advantages of using ruby?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Categories