This commit is contained in:
Max Hilbrunner
2018-03-13 19:05:52 +01:00
committed by GitHub
parent 5083ca4bee
commit 5cd88f9857

View File

@@ -310,9 +310,8 @@ states and quick structs:
# indexing
d.mother = "rebecca" # this doesn't work (use syntax below to add a key:value pair)
d["mother"] = "rebecca" # this works
d.name = "caroline" # if key exists, assignment does work, this is why it's like a quick struct.
d.mother = "caroline" # this would work too to create a new key
For & while
-----------