We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fadb13b commit e2130a2Copy full SHA for e2130a2
doc/Type/Any.pod6
@@ -605,8 +605,12 @@ Coerces the invocant to a C<list> by applying its
605
L«C<.list>|/routine/list» method and uses
606
L«C<List.roll>|/type/List#routine_roll» on it.
607
608
- say Any.roll; # OUTPUT: «(Any)»
609
- say Any.roll(5); # OUTPUT: «((Any) (Any) (Any) (Any) (Any))»
+ my Mix $m = ("þ" xx 3, "ð" xx 4, "ß" xx 5).Mix
+ say $m.roll; # OUTPUT: «ð»
610
+ say $m.roll; # OUTPUT: «(ß ß þ ß þ)»
611
+
612
+C<$m>, in this case, is converted into a list and then a (weighted in
613
+this case) dice is rolled on it. See also L<C<List.roll>|/type/List#routine_roll> for more information.
614
615
=head2 method pick
616
0 commit comments