Skip to content

Commit

Permalink
Adds text I had deleted for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed May 29, 2018
1 parent b907392 commit 1945742
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/Language/structures.pod6
Expand Up @@ -279,11 +279,11 @@ say %hash-plus.sort[0]; # OUTPUT: «3 => 33»
say %hash-plus.last; # OUTPUT: «4 => 44»
=end code
In C<Lastable> we use the universal C<self> variable to refer to
whatever object this particular role is mixed in; in this case it will
contain the hash it is mixed in with; it will contain something else
(and possibly work some other way) in other case. This role will provide
the C<last> method to any variable it's mixed with, providing new,
In C<Lastable> we use the universal C<self> variable to refer to whatever object
this particular role is mixed in; in this case it will contain the hash it is
mixed in with; it will contain something else (and possibly work some other way)
in other case. This role will provide the C<last> method to any variable it's
mixed with, providing new, attachable, functionalities to I<regular> variables.
L<Subsets|/language/typesystem#subset> can also be used to constrain the
possible values a variable might hold; they are Perl 6 attempt at
Expand Down

0 comments on commit 1945742

Please sign in to comment.