Front page | perl.perl6.users |
Postings from April 2020
Re: unflattering flat
Thread Previous
|
Thread Next
From:
Ralph Mellor
Date:
April 4, 2020 22:00
Subject:
Re: unflattering flat
Message ID:
CAPLR5SfKZ1_ub2Mtb5BCW=rzBmyxu0yN6vkRW+dfNAF6SWu+Qw@mail.gmail.com
A microwave is easier:
https://www.google.com/search?q=microwave+garlic+to+remove+skin
[**] will be a wonderful thing when it's implemented.
In the meantime, you could maybe use this as a hack that works to 10
levels deep:
my %hash-with-arrays = a => [1,2], b => [3,4];
sub postfix:<[**]> ($arg) { $arg[*;*;*;*;*;*;*;*;*;*]}
say %hash-with-arrays.values[**].flat # (1 2 3 4)
On Sat, Apr 4, 2020 at 7:46 PM Larry Wall <larry@wall.org> wrote:
>
> You can also do a hyper descalarize if you're into that sort of thing:
>
> %hash-with-arrays.values蒜].flat
>
> Larry
Thread Previous
|
Thread Next