perl6 signatures in POD
Asked Answered
G

1

14

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)>

Gigigigli answered 24/4, 2018 at 7:13 Comment(0)
H
13

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

Hydrodynamics answered 24/4, 2018 at 7:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.