March 2019
Intermediate to advanced
336 pages
9h 9m
English
The AddPlace method of the MapLayout class takes place as a parameter and returns true if the place exists. If the place does not exist, then a graph node with a new place key is created:
// AddPlace methodfunc (mapLayout *MapLayout) AddPlace(place Place) bool { var exists bool if _, exists = mapLayout.GraphNodes[place]; exists { return true } mapLayout.GraphNodes[place] = struct{}{} return true}
Read now
Unlock full access