develooper Front page | perl.perl6.users | Postings from July 2022

Re: shorter way to set states in -n?

Thread Previous | Thread Next
Ralph Mellor
July 2, 2022 19:28
Re: shorter way to set states in -n?
Message ID:
On Sat, Jul 2, 2022 at 5:26 PM Marc Chantreux <> wrote:
> AFAIK about raku -n, I need 2 lines to setup a state with a default value

Does this do what you want:

                BEGIN my (@o, @f) = 0 xx 3;
                @o.push: "ok";
                say @o;


love, raiph

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About