Create Amber_Lynn_Assignment#43
Conversation
|
Hey Amber! Good work on this project. I like the data structure you have! Similarly, your methods look great. Overall, I think your strategy for solving a problem-- creating a starting value at the beginning of each method, iterating through the relevant parts of the data, and then changing those values, and finally returning them. You end up using this syntax to iterate through the data: hash[key].map.each_with_index do |(key, value), index|or hash[key].map.count.times do |i|
in fact, try running your code with these modifications (taking out the hash[key].each_with_index do |(key, value), index|or hash[key].count.times do |i|Let me know if you have a question on that. |
rideshare
Congratulations! You're submitting your assignment.
Comprehension Questions
.map?