Skip to content

Commit 8d16f36

Browse files
authored
Minor syntax refinements.
1 parent 310334e commit 8d16f36

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ The same example in NetLogo 6 (due to syntax changes in NetLogo):
4949
```
5050
; Colour and label the agents by cluster
5151
let ctr 1
52-
(foreach clusters (n-of (length clusters) base-colors)
53-
[ [ x y ] -> let aset turtles with [ member? self x ]
54-
ask aset
55-
[ set color y
56-
set label (word "ID: " who ", Cluster: " ctr ", Wealth: " wealth) ]
57-
; Print agent sets
58-
output-print (word "Cluster " ctr ": " aset)
59-
set ctr (ctr + 1) ])
52+
(foreach clusters (n-of (length clusters) base-colors)
53+
[ [ x y ] -> let aset turtles with [ member? self x ]
54+
ask aset
55+
[ set color y
56+
set label (word "ID: " who ", Cluster: " ctr ", Wealth: " wealth) ]
57+
; Print agent sets
58+
output-print (word "Cluster " ctr ": " aset)
59+
set ctr (ctr + 1) ])
6060
```
6161

6262
### Clustering by location

0 commit comments

Comments
 (0)