代码之家  ›  专栏  ›  技术社区  ›  Martin Barth

POD中的perl6签名

  •  14
  • Martin Barth  · 技术社区  · 7 年前

    自从 --> preferred perl6中签名中返回类型的说明方法我想知道是否或如何将函数签名的代码放入 C<...>

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

    1 回复  |  直到 7 年前
        1
  •  13
  •   moritz    7 年前

    您可以使用 C<<foo(Int $a --> Bool)>>

    推荐文章