Re: This seems to be wrong
[email protected] (Brandon Allbery) Sun, 18 Sep 2016 18:15:05 -0400
| Newsgroups | perl.perl6.language |
|---|---|
| Message-ID | <CAKFCL4Xe646Kea_PiDsiasPzg+75ywqGsEJSKKD_Vw3s9vr4TA@mail.gmail.com> |
On Sun, Sep 18, 2016 at 6:06 PM, Trey Harris <[email protected]> wrote: > Not work? It results inMethod 'prefix:<+>' not found for invocant of > class 'Any', but the docs > <https://docs.perl6.org/language/operators#prefix_+> > > say it is defined as a multi on Any…. > > No, they say it's a multi sub, not a multi method on Any. And the prefix: syntax doesn't seem to work directly with the quick workaround for that, so it ends up being for @inputs.map({ .&prefix:<+> }) { ... } -- brandon s allbery kf8nh sine nomine associates [email protected] [email protected] unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net