On Tue, 28 Feb 2017 14:41:07 -0800, sml...@gmail.com wrote:
>     my &a = *+1;
>     my &b = */2;
> 
>     say &a.arity;         # 1
>     say &b.arity;         # 1
>     say (&a o &b).arity;  # 0
> 
>     say &a.count;         # 1
>     say &b.count;         # 1
>     say (&a o &b).count;  # Inf
> 
> Ideally, the result of the `o` operator should probably have the same
> signature as its right-hand argument (which gets the input "first").
> 
> Things that care about arity/count, and thus might currently behave
> differently than users expect when given a Block created by `o`,
> include:
> 
>   .sort  (comparator vs Schwartzian transform)
>   .map  (normal map vs n-at-a-time)
>   o  (interpolates input lists if count>1)

Thank you for the report. This is now fixed.

Fixes:
https://github.com/rakudo/rakudo/commit/032b283d5a
https://github.com/rakudo/rakudo/commit/cb149a836e

Tests:
https://github.com/perl6/roast/commit/270dcf82f2
https://github.com/perl6/roast/commit/f31eeabab5

Reply via email to