T M
role Mixy
Error ReportCollection examples

Collection of distinct objects with Real weights

role Mixy does Baggy { }

A role for collections of weighted values. See Mix and MixHash. Mixy objects differ from Baggy objects in that the weights of Mixy are Reals rather than Ints.

Methods

method roll

method roll($count = 1)

Similar to a Bag.roll, but with Real weights rather than integral ones.

See Also

Sets, Bags, and Mixes