Re: Strange behavior with sequence of functions

2023-06-29 Thread William Michels via perl6-users
> On Jun 29, 2023, at 12:21, Sean McAfee wrote: > > I was trying to construct a sequence of functions using the sequence > operator, and encountered some very puzzling behavior. I was able to reduce > it down to some very simple examples. > > [1] > my @s = +*, -> { } ... * > [...] > [2]

Strange behavior with sequence of functions

2023-06-29 Thread Sean McAfee
I was trying to construct a sequence of functions using the sequence operator, and encountered some very puzzling behavior. I was able to reduce it down to some very simple examples. [1] > my @s = +*, -> { } ... * [...] [2] > @s[0] Too few positionals passed; expected 1 argument but got 0 in