On 01/10/16 12:27, Brandon Allbery wrote:
On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit <[email protected] <mailto:[email protected]>> 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
[email protected] <mailto:[email protected]> [email protected] <mailto:[email protected]>
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/
-----BEGIN GEEK CODE BLOCK-----
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---
------END GEEK CODE BLOCK------
http://www.geekcode.com/

Reply via email to