|
|
Created by Edmond Pruteanu
over 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 |
Want to create your own Flashcards for free with GoConqr? Learn more.