-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
=begin pod | ||
=TITLE class X::Bind::Slice | ||
=SUBTITLE Exception thrown when trying to bind to a slice | ||
class X::Bind::Slice is Exception { ... } | ||
When you try to bind to an array or hash slice: | ||
my @a; @a[0, 1] := [42]; # Cannot bind to Array slice | ||
my %h; %h<a b> := {}; # Cannot bind to Hash slice | ||
you get an exception of type X<::Bind::Slice> | ||
=head1 Methods | ||
=head2 method type | ||
method type(X::Bind::Slice:D:) | ||
returns the type object of the thing that you tried to slice-bind, for example | ||
L<Array|/type/Array>, L<List|/type/List> or L<Hash|/type/Hash>. | ||
=end pod |