On Thu, 19 Jan 2017 18:10:27 -0800, [email protected] wrote:
> I guess it is supposed to work?
Isn't this the case where HyperWhatever is used as a term by itself, so you're
passing it itself to [+] metaop and doesn't curry and hence its complaining.
Same's with regular Whatever:
<Zoffix> m: dd ([+] *)(42)
<camelia> rakudo-moar f97d5c: OUTPUT«Cannot resolve caller Numeric(Whatever: );
none of these signatures match: (Mu:U \v: *%_) in block <unit> at <tmp>
line 1
Also, I believe HyperWhatever doesn't just slurp the args and sub them in its
place, but rather performs the operation for each of them. It basically curries
into `sub (*@_) { map &c, @_ }`, where &c is he "curry":
<Zoffix> m: dd (**.&[+](1))(4, 8, 15
<camelia> rakudo-moar f97d5c: OUTPUT«(5, 9, 16).Seq»
So even if it curried in the OP example, it'd just return the same seq back,
since the [+] would be called with 1 arg each time.