txt: ## isa.md
  isa
  
  Combined from primary sources listed below.
  
  # [In Mu](#___top "go to top of document")[§](#(Mu)_routine_isa "direct link")
  
  See primary documentation
  [in context](/type/Mu#routine_isa)
  for **routine isa**.
  
  ```raku
  multi method isa(Mu $type     --> Bool:D)
  multi method isa(Str:D $type  --> Bool:D)
  ```
  
  Returns `True` if the invocant is an instance of class `$type`, a subset type or a derived class (through inheritance) of `$type`. [`does`](/routine/does#(Mu)_routine_does) is similar, but includes roles.
  
  ```raku
  my $i = 17;
  say $i.isa("Int");   # OUTPUT: «True␤»
  say $i.isa(Any);     # OUTPUT: «True␤»
  role Truish {};
  my $but-true = 0 but Truish;
  say $but-true.^name;        # OUTPUT: «Int+{Truish}␤»
  say $but-true.does(Truish); # OUTPUT: «True␤»
  say $but-true.isa(Truish);  # OUTPUT: «False␤»
  ```
  