Skip to content

Conversation

llumbreras
Copy link

Added train hash and passenger struct

@jwo
Copy link
Member

jwo commented Dec 2, 2013

Hi!

train = {city: "Santa Fe", engines: 2, cars: 5, caboose: "Yes"}

So here you used a hash for the train --- I like the use of hash normally; this lesson was about using a Struct. What about moving from a hash to a struct? How would that change this script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants