On 01/10/16 12:27, Brandon Allbery wrote:
On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit <griz...@smit.id.au <mailto:griz...@smit.id.au>> wrote:

    I keep finding stuff like this:

    multi  method  spurt(IO::Path:D:  Blob  $contents, :$bin, |c)
    multi  method  spurt(IO::Path:D:  Cool  $contents, :$bin, |c)

    but I cannot find the |c syntax in the docs I have googled but no good
    a pointer or link would be good.

You are looking for captures: https://docs.perl6.org/type/Signature#Capture_Parameters

brandon s allbery kf8nh sine nomine associates
allber...@gmail.com <mailto:allber...@gmail.com> ballb...@sinenomine.net <mailto:ballb...@sinenomine.net>
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Thx I found it on my own, finally googled the right thing


   .~.     In my life God comes first....
   /V\         but Linux is pretty high after that :-D
  /( )\    Francis (Grizzly) Smit
  ^^-^^    http://www.smit.id.au/
Version: 3.1
GM/CS/H/P/S/IT/L d- s+:+ a++ C++++ UL++++$ P+++ L+++$ E--- W+++
N w--- M-- V-- PE- PGP t+ 5-- X-- R- tv b++++ DI(+) D-
G e++ h+ y? r% z---

Reply via email to