role Mixy

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.

method pick

method pick($?)

Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.

method grab

method grab($?)

Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.

method kxxv

method kxxv()

Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.

See Also

Sets, Bags, and Mixes

See Also

role Associative

Object that supports looking up values by key

role Baggy

Collection of distinct weighted objects

role Blob

Immutable buffer for binary data ('Binary Large OBject')

role Buf

Mutable buffer for binary data

role Iterable

Interface for container objects that can be iterated over

role Iterator

Generic API for producing a sequence of values

role Positional

Object that supports looking up values by index

role PositionalBindFailover

Failover for binding to a Positional

role QuantHash

Object hashes with a limitation on the type of values

role Sequence

Common methods of sequences

role Setty

Collection of distinct objects

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.