Search code examples
returnescapingrakuquotingcode-documentation

perl6 signatures in POD


since --> is the preferred way to state the return type in a signature in perl6 I am wondering if or how it is possible to put the code of a function signature into C<...>.

e.g. C<foo(Int $a --> Bool)>


Solution

  • You can use C<<foo(Int $a --> Bool)>>.