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 is an iterator handled in ruby?



How is an iterator handled in ruby?..

Answer / Dheeraj Kumar Mishra

In Ruby, iterators like each or map are used to perform operations on collections (arrays, hashes) one element at a time. You can chain multiple iterator methods together for convenience.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me an array [1,2,34,5,6,7,8,9], product it using a method?

1 Answers  


How to read a file in Ruby?

1 Answers  


Tell me how can you declare a block in ruby?

1 Answers  


what is the syntax for Ruby collect Iterator?

1 Answers  


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


Explain about Float, Dig and Max?

1 Answers  


What does irb stand for?

1 Answers  


what is class libraries in Ruby?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Mention what is the difference between procs and blocks?

1 Answers  


Explain class libraries in ruby.

1 Answers  


Categories