Skip to content

Commit

Permalink
Document X::Bind:Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 26, 2015
1 parent da3d564 commit c8b95f8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/Type/X/Bind/Slice.pod
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

0 comments on commit c8b95f8

Please sign in to comment.