You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs go into great detail about the Allomorphs and how to create them from a literal number. However, how to change an Allomorph-like variable from one of its forms to the other is not shown.
Suggestions
In the Numerics section, add examples like this:
# Create a string that could be an Allomorph (but isn't)
my $a = "010";
say $a.^name; # OUTPUT: Str (note: not Allomorph)
# Change to an Int representation:
$a .= Numeric;
say $a; # OUTPUT: 10
say $a.^name; # OUTPUT: Int (note: not Allomorph)
The text was updated successfully, but these errors were encountered:
Problem or new feature
The docs go into great detail about the Allomorphs and how to create them from a literal number. However, how to change an Allomorph-like variable from one of its forms to the other is not shown.
Suggestions
In the Numerics section, add examples like this:
The text was updated successfully, but these errors were encountered: