Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. diff --git a/doc/Language/functions.pod6 b/doc/Language/functions.pod6
  2. index 1dd12da6..54edfeea 100644
  3. --- a/doc/Language/functions.pod6
  4. +++ b/doc/Language/functions.pod6
  5. @@ -212,8 +212,10 @@ You declare each candidate with the C<multi> declarator:
  6. congratulate 'Larry'; # OUTPUT: «Happy birthday, Larry␤»
  7. congratulate 'Bob', 45; # OUTPUT: «Happy 45th birthday, Bob␤»
  8.  
  9. -Dispatch can happen on the number of arguments (the L<arity|/type/Routine#(Code)_method_arity>), but also on the
  10. -type:
  11. +Dispatch can happen on the number of arguments (the L<arity|/type/Routine#(Code)_method_arity>), the
  12. +type of arguments but also on additional assertions which can be placed on them. For more information
  13. +about type constraints see the documentation for the L<Signature|/type/Signature#Type_Constraints>
  14. +class.
  15.  
  16. multi as-json(Bool $d) { $d ?? 'true' !! 'false'; }
  17. multi as-json(Real $d) { ~$d }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement