Open dwhatley19 opened 3 years ago
Simple cases (e.g. above diagram) are resolved. More complicated cases, as in the diagram in the answer explanation of http://web.mit.edu/6.031/www/sp20/classes/02-basic-java/#@ex-java_collections-x_marks_the_spot
still need proposed syntax and layout.
Syntax has been revised to:
turtles -> (Map<String,Turtle>
(String "Buster"): (Turtle),
(String "Buckminster"): (Turtle)
(String "Bob"): (Turtle))
Reading 2 has a diagram illustrating the usage of "key/value pair" field types:
The proposed Snapdown syntax for this diagram is:
Alternatively, one can write: