txt: ## slice.md
  class X::Bind::Slice
  
  Error due to binding to a slice
  
  ```raku
  class X::Bind::Slice is Exception {}
  ```
  
  When you try to bind to an array or hash slice:
  
  ```raku
  my @a; @a[0, 1] := [42];
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::Bind::Slice: Cannot bind to Array slice␤»
  ```
  
  and
  
  ```raku
  my %h; %h<a b> := {};
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::Bind::Slice: Cannot bind to Hash slice␤»
  ```
  
  you get an exception of type `::Bind::Slice`.
  
  # [Methods](#class_X::Bind::Slice "go to top of document")[§](#Methods "direct link")
  
  ## [method type](#class_X::Bind::Slice "go to top of document")[§](#method_type "direct link")
  
  ```raku
  method type(X::Bind::Slice:D:)
  ```
  
  returns the type object of the thing that you tried to slice-bind, for example [`Array`](/type/Array), [`List`](/type/List) or [`Hash`](/type/Hash).
  