# New Ticket Created by  Sam S. 
# Please include the string:  [perl #130891]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130891 >


    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)

Reply via email to