![]() |
Created by Edmond Pruteanu
almost 11 years ago
|
|
Question | Answer |
Execute code for each element in collection | ary = [1,2,3,4,5] ary.each do |i| puts i end |
Return all the elements of a collection | collection = collection.collect |
There are no comments, be the first and leave one below:
Want to create your own Flashcards for free with GoConqr? Learn more.