Answer stability round 1: the choice comment defines shared, and names none of its readers
This commit is contained in:
@@ -29,7 +29,7 @@ func (*folder) isNode() {}
|
|||||||
|
|
||||||
// choice draws one of its items. cum holds cumulative weights for a weighted
|
// choice draws one of its items. cum holds cumulative weights for a weighted
|
||||||
// draw; when nil the choice is uniform and selection is O(1). shared is the set of
|
// draw; when nil the choice is uniform and selection is O(1). shared is the set of
|
||||||
// relative dot paths every item can address, into a repeat too, which carriedByAll reads.
|
// relative dot paths every item can address, into a repeat too.
|
||||||
type choice struct {
|
type choice struct {
|
||||||
items []node
|
items []node
|
||||||
cum []float64
|
cum []float64
|
||||||
|
|||||||
Reference in New Issue
Block a user