Re: stashing an array in a hash and yanking it back out

2020-03-19 Thread William Michels via perl6-users
Hi all, Andy Bach contacted me off list, to say my postscript comment about "prepending" (versus "appending") to a hash object was nonsensical. I agree. Hashes in Raku/Perl6 are guaranteed to be unordered upon return. So once they are declared, it doesn't make sense to think of them as a (double-

Re: stashing an array in a hash and yanking it back out

2020-03-19 Thread William Michels via perl6-users
Okay, here's another (simpler?) approach using the ",= " postfix operator: mbook:~ homedir$ perl6 To exit type 'exit' or '^D' > my %stash; {} > my @monsters = << godzilla grendel wormface blob >>; [godzilla grendel wormface blob] > my @rabbits = << bugs peter easter >>; [bugs peter easter] > %stas